ejabberdctl: Avoid bashisms

Don't let the ejabberdctl script depend on non-POSIX syntax.  (Also, fix
a typo and avoid tabs.)
This commit is contained in:
Holger Weiss 2020-08-24 06:42:45 +02:00
parent b9926c6796
commit 65260e2449
1 changed files with 6 additions and 6 deletions

View File

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