bugfix: local connection if session is :0 but not :0.0

This commit is contained in:
nojhan 2012-08-14 15:55:23 +02:00
parent a4ec9a4d72
commit 7693c0394c

View File

@ -319,7 +319,7 @@ _lp_connection()
else else
# TODO check on *BSD # TODO check on *BSD
local sess_src=$(who am i | sed -n 's/.*(\(.*\))/\1/p') local sess_src=$(who am i | sed -n 's/.*(\(.*\))/\1/p')
if [[ -z "$sess_src" || "$sess_src" = :0.0 ]] ; then if [[ -z "$sess_src" || "$sess_src" = :0.0 || "$sess_src" == :0 ]] ; then
echo lcl # Local echo lcl # Local
else else
echo tel # Telnet echo tel # Telnet