logo

searx

My custom branche(s) on searx, a meta-search engine
commit: fee556c9904637051a9ba874ba7e71cd9f10789f
parent: 667f7fde39e306d8c217fa72a43e7d3d93ca7127
Author: Adam Tauber <asciimoo@gmail.com>
Date:   Wed,  2 Mar 2016 22:08:28 +0100

Merge pull request #517 from pointhi/manage-improvement

[fix] improve argument parsing of manage.sh

Diffstat:

Mmanage.sh4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/manage.sh b/manage.sh @@ -71,7 +71,7 @@ locales() { } help() { - [ -z "$1" ] || echo "Error: $1\n" + [ -z "$1" ] || echo -e "Error: $1\n" echo "Searx manage.sh help Commands @@ -90,7 +90,7 @@ Commands " } -if type $ACTION 1>/dev/null; then +if [ -n "$(type -t $ACTION)" ] && [ "$(type -t $ACTION)" = function ]; then $ACTION else help "action not found"