Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2012-05-29 11:03:15 +02:00
parent 5edf39f111
commit d052e2d510

View file

@ -33,11 +33,10 @@ index=0
for arg in $@; do
if [ $index -eq 0 ]; then
# reset $@
set --
set --
fi
index=$((index+=1))
if [ $index -eq $source_index -a -d "$arg" ]; then
echo "directory: $arg" | logger
# if the source is a directory, it has to end with "/" for rsync to do the right thing
arg="${arg%/}/"
fi