25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

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

View File

@ -130,10 +130,10 @@ exec_iex()
# usage
debugwarning()
{
if [ "$OSTYPE" != "cygwin" ] && [ "$OSTYPE" != "win32" ]; then
if [ "a$TERM" == "a" ] || [ "$TERM" == "dumb" ] ; then
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."
echo "You may have to set the TERM environment variable to fix this."
exit 8
fi
fi