From c9a86af699cd22a0eeaebf7d02a484e2ce8b05d5 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Thu, 23 Apr 2009 20:13:26 +0200 Subject: ftpsync fix a bash4 bug in the script Signed-off-by: Joerg Jaspert --- bin/ftpsync | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin') 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 -- cgit v1.2.3