X-Git-Url: https://git.madduck.net/code/molly-guard.git/blobdiff_plain/3ff2e8c0cde55785ef76980318b87d738082d4b8..b3004a65e3dd47433d37cd2b275713404f10c13c:/shutdown diff --git a/shutdown b/shutdown index 29bd8fe..0c52d92 100755 --- a/shutdown +++ b/shutdown @@ -91,7 +91,7 @@ test -t 0 || do_real_cmd # was created by sshd. PTS=$(readlink /proc/$$/fd/0) if ! pgrep -f "^sshd.+${PTS#/dev/}[[:space:]]*$" >/dev/null \ - && [ -z "$SSH_CONNECTION" ]; then + && [ -z "${SSH_CONNECTION:-}" ]; then if [ $PRETEND_SSH -eq 1 ]; then echo "I: this is not an SSH session, but --pretend-ssh was given..." else