diff options
author | Joerg Jaspert <joerg@debian.org> | 2011-12-09 07:48:11 +0100 |
---|---|---|
committer | Joerg Jaspert <joerg@debian.org> | 2011-12-09 07:48:11 +0100 |
commit | 1f11896deda9becea9045d78be514d4f516534af (patch) | |
tree | 43706d020fbf3754db3879e24ae3b23eb46da969 | |
parent | cb0df27aab64b358f3e803e927f91e9f08e289d8 (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>
-rwxr-xr-x | bin/ftpsync | 1 |
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}" |