Check for existence of SSH_CONNECTION variable.

This commit is contained in:
Jakub Turski
2016-08-29 13:44:50 +01:00
parent 1645f95201
commit bb5c4a4fee
+5
View File
@@ -53,6 +53,11 @@ opts=
# GUI mode, implies forking
case "$name" in m*|g*|rm*|rg*) gui=true ;; esac
# Logged in over SSH? No gui.
if [ -n "${SSH_CONNECTION}" ]; then
gui=
fi
# Restricted mode
case "$name" in r*) opts="$opts -Z";; esac