on master help sign in
Merge pull request #517 from pointhi/manage-improvement
fee556cAdam Tauber
manage.sh+2−2
@@ -71,7 +71,7 @@ locales() {
71}
71}
72
72
73help() {
73help() {
74− [ -z "$1" ] || echo "Error: $1\n"
74+ [ -z "$1" ] || echo -e "Error: $1\n"
75 echo "Searx manage.sh help
75 echo "Searx manage.sh help
76
76
77Commands
77Commands
@@ -90,7 +90,7 @@ Commands
90"
90"
91}
91}
92
92
93−if type $ACTION 1>/dev/null; then
93+if [ -n "$(type -t $ACTION)" ] && [ "$(type -t $ACTION)" = function ]; then
94 $ACTION
94 $ACTION
95else
95else
96 help "action not found"
96 help "action not found"