Fix bug : forgot to change a 'bash' into ${WORKING_SHELL}
This commit is contained in:
parent
6f0bf08f61
commit
34826d0353
@ -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?
|
||||||
|
Loading…
Reference in New Issue
Block a user