mirror of
https://github.com/searxng/searxng.git
synced 2024-12-25 18:50:30 +00:00
Merge pull request #517 from pointhi/manage-improvement
[fix] improve argument parsing of manage.sh
This commit is contained in:
commit
fee556c990
1 changed files with 2 additions and 2 deletions
|
@ -71,7 +71,7 @@ locales() {
|
||||||
}
|
}
|
||||||
|
|
||||||
help() {
|
help() {
|
||||||
[ -z "$1" ] || echo "Error: $1\n"
|
[ -z "$1" ] || echo -e "Error: $1\n"
|
||||||
echo "Searx manage.sh help
|
echo "Searx manage.sh help
|
||||||
|
|
||||||
Commands
|
Commands
|
||||||
|
@ -90,7 +90,7 @@ Commands
|
||||||
"
|
"
|
||||||
}
|
}
|
||||||
|
|
||||||
if type $ACTION 1>/dev/null; then
|
if [ -n "$(type -t $ACTION)" ] && [ "$(type -t $ACTION)" = function ]; then
|
||||||
$ACTION
|
$ACTION
|
||||||
else
|
else
|
||||||
help "action not found"
|
help "action not found"
|
||||||
|
|
Loading…
Reference in a new issue