Fix bug : forgot to change a 'bash' into ${WORKING_SHELL}

This commit is contained in:
Luc Didry 2012-08-13 23:07:58 +02:00
parent 6f0bf08f61
commit 34826d0353

View File

@ -273,7 +273,7 @@ __user()
__connection() __connection()
{ {
THIS_TTY=$(awk -v pid=$$ '$0 ~ pid && /bash/{ print $7 }' < <(ps aux) ) THIS_TTY=$(awk -v pid=$$ '$0 ~ pid && /${WORKING_SHELL}/{ print $7 }' < <(ps aux) )
SESS_SRC=$(who | awk -v thistty="$THIS_TTY" '$0 ~ thistty { print $6 }') SESS_SRC=$(who | awk -v thistty="$THIS_TTY" '$0 ~ thistty { print $6 }')
# Are we in an SSH connexion? # Are we in an SSH connexion?