fix output for autologout debug

This commit is contained in:
Jakobus Schürz 2020-03-12 18:27:38 +01:00
parent 04e217184d
commit d69fbd974b

View file

@ -3,9 +3,9 @@
# if we are root, exit after 5 Minutes
case $(tty) in
/dev/tty[0-9]*)
echo "Run in TTY -> set autologout \$TMOUT=$TMOUT" >&2
[ $( id -u ) -eq 0 ] && TMOUT=${MYSHELLCONFIIG_ROOT_TMOUT}
[ $( id -u ) -gt 0 ] && TMOUT=${MYSHELLCONFIIG_USER_TMOUT}
echo "Run in TTY -> set autologout \$TMOUT=$TMOUT" >&2
;;
*)
echo "Run in other terminal" >&2