Check if TERM is set before running a remote debug shell

This commit is contained in:
Jerome Sautret 2020-07-30 10:33:38 +02:00
parent b89b0f140a
commit 839229b5f0
1 changed files with 8 additions and 0 deletions

View File

@ -130,6 +130,14 @@ exec_iex()
# usage
debugwarning()
{
if [ "$OSTYPE" != "cygwin" ] && [ "$OSTYPE" != "win32" ]; then
if [ "a$TERM" == "a" ] || [ "$TERM" == "dumb" ] ; then
echo "Terminal type not supported."
echo "You may have to set the TERM environnement variable to fix this."
exit 8
fi
fi
if [ "$EJABBERD_BYPASS_WARNINGS" != "true" ] ; then
echo "--------------------------------------------------------------------"
echo ""