add debug test if tty or not
This commit is contained in:
parent
81793e06c3
commit
98b96b25e9
1 changed files with 6 additions and 0 deletions
|
@ -10,6 +10,12 @@ if [ -z ${SSHS+x} ]; then SSHS=false;fi
|
||||||
if [[ $- = *i* ]] ; then
|
if [[ $- = *i* ]] ; then
|
||||||
#echo "interactive shell" >&2
|
#echo "interactive shell" >&2
|
||||||
|
|
||||||
|
case $(tty) in
|
||||||
|
/dev/tty[0-9]*)
|
||||||
|
echo "Run in TTY" ;;
|
||||||
|
*)
|
||||||
|
echo "Run in other terminal";;
|
||||||
|
esac
|
||||||
# define variables
|
# define variables
|
||||||
[ -z "${MYSHELLCONFIIG_ROOT_TMOUT+x}" ] && MYSHELLCONFIIG_ROOT_TMOUT=500
|
[ -z "${MYSHELLCONFIIG_ROOT_TMOUT+x}" ] && MYSHELLCONFIIG_ROOT_TMOUT=500
|
||||||
[ -z "${MYSHELLCONFIIG_USER_TMOUT+x}" ] && MYSHELLCONFIIG_USER_TMOUT=0
|
[ -z "${MYSHELLCONFIIG_USER_TMOUT+x}" ] && MYSHELLCONFIIG_USER_TMOUT=0
|
||||||
|
|
Loading…
Reference in a new issue