diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2020-08-24 06:42:45 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2020-08-24 06:42:45 +0200 |
commit | 65260e2449b2cb09bbb012c877d0521938e22284 (patch) | |
tree | f4a7f405a28aa87c3da5a645074ad4100cb81800 /ejabberdctl.template | |
parent | Update opt files with "make options" (diff) |
ejabberdctl: Avoid bashisms
Don't let the ejabberdctl script depend on non-POSIX syntax. (Also, fix
a typo and avoid tabs.)
Diffstat (limited to '')
-rwxr-xr-x | ejabberdctl.template | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ejabberdctl.template b/ejabberdctl.template index a30dabca..68eaefa7 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 |