1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-04 20:30:11 +01:00

[fix] posix compatibility

This commit is contained in:
Adam Tauber 2016-03-17 21:31:45 +01:00
parent 0f518e489e
commit 1d5afa4ccc

View File

@ -71,7 +71,7 @@ locales() {
}
help() {
[ -z "$1" ] || echo -e "Error: $1\n"
[ -z "$1" ] || printf "Error: $1\n"
echo "Searx manage.sh help
Commands
@ -90,8 +90,6 @@ Commands
"
}
if [ -n "$(type -t $ACTION)" ] && [ "$(type -t $ACTION)" = function ]; then
$ACTION
else
help "action not found"
fi
[ "$(command -V "$ACTION" | grep ' function$')" != "" ] \
&& $ACTION \
|| help "action not found"