fix output for autologout debug
This commit is contained in:
parent
04e217184d
commit
d69fbd974b
1 changed files with 1 additions and 1 deletions
|
@ -3,9 +3,9 @@
|
||||||
# if we are root, exit after 5 Minutes
|
# if we are root, exit after 5 Minutes
|
||||||
case $(tty) in
|
case $(tty) in
|
||||||
/dev/tty[0-9]*)
|
/dev/tty[0-9]*)
|
||||||
echo "Run in TTY -> set autologout \$TMOUT=$TMOUT" >&2
|
|
||||||
[ $( id -u ) -eq 0 ] && TMOUT=${MYSHELLCONFIIG_ROOT_TMOUT}
|
[ $( id -u ) -eq 0 ] && TMOUT=${MYSHELLCONFIIG_ROOT_TMOUT}
|
||||||
[ $( id -u ) -gt 0 ] && TMOUT=${MYSHELLCONFIIG_USER_TMOUT}
|
[ $( id -u ) -gt 0 ] && TMOUT=${MYSHELLCONFIIG_USER_TMOUT}
|
||||||
|
echo "Run in TTY -> set autologout \$TMOUT=$TMOUT" >&2
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Run in other terminal" >&2
|
echo "Run in other terminal" >&2
|
||||||
|
|
Loading…
Reference in a new issue