mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-06 08:40:44 +00:00
OSX cp cannot do -t
This commit is contained in:
parent
08ad1f4151
commit
1f7cac3bc0
@ -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 $<
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user