forked from zaclys/searxng
Merge pull request #212 from return42/fix-manage
[fix] ./manage script, prompt the unknown command
This commit is contained in:
commit
197fa188c0
2
manage
2
manage
|
@ -525,7 +525,7 @@ main() {
|
||||||
*)
|
*)
|
||||||
_type="$(type -t "$cmd")"
|
_type="$(type -t "$cmd")"
|
||||||
if [ "$_type" != 'function' ]; then
|
if [ "$_type" != 'function' ]; then
|
||||||
err_msg "unknown command $1 / use --help"
|
err_msg "unknown command: $cmd / use --help"
|
||||||
return 42
|
return 42
|
||||||
else
|
else
|
||||||
"$cmd" "$@"
|
"$cmd" "$@"
|
||||||
|
|
Loading…
Reference in New Issue