Skip to content

Commit

Permalink
OSX cp cannot do -t
Browse files Browse the repository at this point in the history
  • Loading branch information
axkibe committed Feb 16, 2012
1 parent 08ad1f4 commit 1f7cac3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Makefile.am
Expand Up @@ -31,7 +31,8 @@ TESTS = \
tests/l4rsyncdata.lua

dist_man1_MANS = doc/lsyncd.1
EXTRA_DIST = doc/lsyncd.1.txt doc/lsyncd.1.xml inotify.c fsevents.c bin2carray.lua
EXTRA_DIST = doc/lsyncd.1.txt doc/lsyncd.1.xml inotify.c fsevents.c bin2carray.lua \
default.lua default-rsync.lua default-rsyncssh.lua default-direct.lua

doc/lsyncd.1: doc/lsyncd.1.xml
xsltproc -o $@ -nonet /etc/asciidoc/docbook-xsl/manpage.xsl $<
Expand Down
7 changes: 3 additions & 4 deletions default-direct.lua
Expand Up @@ -35,16 +35,15 @@ default.direct = {
spawn(
event,
'/bin/mkdir',
-- '-p',
event.targetPath
)
else
spawn(
event,
'/bin/cp',
'-t',
event.targetPathdir,
event.sourcePath
event.sourcePath,
-- '-t', not supported on OSX
event.targetPathdir
)
end
elseif event.etype == 'Modify' then
Expand Down

0 comments on commit 1f7cac3

Please sign in to comment.