simpler SSH_IP acquiring method

This commit is contained in:
François Schmidts 2012-07-17 11:01:54 +02:00 committed by nojhan
commit ff35da39a2

View file

@ -88,7 +88,7 @@ __connection()
# Are we in an SSH connexion?
SSH_FLAG=0
SSH_IP=`echo $SSH_CLIENT | awk '{ print $1 }'`
SSH_IP=${SSH_CLIENT%% *}
if [ $SSH_IP ] ; then
SSH_FLAG=1
fi