summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJoerg Jaspert <joerg@debian.org>2008-10-21 23:41:19 +0200
committerJoerg Jaspert <joerg@debian.org>2008-10-21 23:41:19 +0200
commit69d708de282d3bf7419a17265e9cd3b6f1f85d83 (patch)
tree395815664c94716e85173898cead72e858e5eafb /bin
parentb16c9c2ea8f24d726e73173daafdb35ebcb58307 (diff)
ftpsync
set -u likes to have variables declared before we use em Signed-off-by: Joerg Jaspert <joerg@debian.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ftpsync1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/ftpsync b/bin/ftpsync
index ebd527d..3f555e8 100755
--- a/bin/ftpsync
+++ b/bin/ftpsync
@@ -138,6 +138,7 @@ NAME="`basename $0`"
# The original command line arguments need to be saved!
ORIGINAL_COMMAND="$*"
+SSH_ORIGINAL_COMMAND=${SSH_ORIGINAL_COMMAND:""}
# Now, check if we got told about stuff via ssh
if [ -n "${SSH_ORIGINAL_COMMAND}" ]; then
# We deliberately add "nothing" and ignore it right again, to avoid