summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJoerg Jaspert <joerg@debian.org>2009-04-23 20:13:26 +0200
committerJoerg Jaspert <joerg@debian.org>2009-04-23 20:13:26 +0200
commitc9a86af699cd22a0eeaebf7d02a484e2ce8b05d5 (patch)
tree69c96ccd58acbe9978ea41ea50ccea57beab6432 /bin
parent1befe7bccf82504e62336d0e0223f54706024e7d (diff)
ftpsync
fix a bash4 bug in the script Signed-off-by: Joerg Jaspert <joerg@debian.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ftpsync6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/ftpsync b/bin/ftpsync
index f31a8a2..48fb484 100755
--- a/bin/ftpsync
+++ b/bin/ftpsync
@@ -148,7 +148,11 @@ check_rsync() {
# As what are we called?
NAME="`basename $0`"
# The original command line arguments need to be saved!
-ORIGINAL_COMMAND="$*"
+if [ $# -gt 0 ]; then
+ ORIGINAL_COMMAND=$*
+else
+ ORIGINAL_COMMAND=""
+fi
SSH_ORIGINAL_COMMAND=${SSH_ORIGINAL_COMMAND:-""}
# Now, check if we got told about stuff via ssh