summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJoerg Jaspert <joerg@debian.org>2011-12-09 07:48:11 +0100
committerJoerg Jaspert <joerg@debian.org>2011-12-09 07:48:11 +0100
commit1f11896deda9becea9045d78be514d4f516534af (patch)
tree43706d020fbf3754db3879e24ae3b23eb46da969 /bin
parentcb0df27aab64b358f3e803e927f91e9f08e289d8 (diff)
Ensure that SSH_CONNECTION is always set.
Newer bash kicks out "unused var" warning otherwise, rightly so 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 1cdf20d..1ae7b81 100755
--- a/bin/ftpsync
+++ b/bin/ftpsync
@@ -414,6 +414,7 @@ exec >"$LOG" 2>&1 <&-
log "Mirrorsync start"
# Look who pushed us and note that in the log.
+SSH_CONNECTION=${SSH_CONNECTION:-""}
PUSHFROM="${SSH_CONNECTION%%\ *}"
if [ -n "${PUSHFROM}" ]; then
log "We got pushed from ${PUSHFROM}"