update .bashrc to detect non-interactive login without ssh
This commit is contained in:
@@ -40,6 +40,11 @@ if [ -z "${BASHRC_SOURCED-}" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# check if there exists non-interative login without ssh
|
||||||
|
if [ -z "${SSH_CONNECTION-}" ]; then
|
||||||
|
echo "Non-interactive login detected" >> $HOME/linwei/chn/log
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -n "$CHN_LS_USE_COLOR" ] && alias ls="ls --color=auto"
|
[ -n "$CHN_LS_USE_COLOR" ] && alias ls="ls --color=auto"
|
||||||
|
|||||||
Reference in New Issue
Block a user