simpler SSH_IP acquiring method

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

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