diff options
-rwxr-xr-x | bin/ftpsync | 6 |
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 |