From 65260e2449b2cb09bbb012c877d0521938e22284 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 24 Aug 2020 06:42:45 +0200 Subject: [PATCH] ejabberdctl: Avoid bashisms Don't let the ejabberdctl script depend on non-POSIX syntax. (Also, fix a typo and avoid tabs.) --- ejabberdctl.template | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ejabberdctl.template b/ejabberdctl.template index a30dabcaa..68eaefa7b 100755 --- a/ejabberdctl.template +++ b/ejabberdctl.template @@ -130,12 +130,12 @@ 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 + 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