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:
parent
b9926c6796
commit
65260e2449
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user