diff --git a/ecs/bin/ejabberdctl b/ecs/bin/ejabberdctl index 199b4d3..7dca5b3 100755 --- a/ecs/bin/ejabberdctl +++ b/ecs/bin/ejabberdctl @@ -150,6 +150,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 environment variable to fix this." + exit 8 + fi + fi + if [ "$EJABBERD_BYPASS_WARNINGS" != "true" ] ; then echo "--------------------------------------------------------------------" echo ""