Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

fix: Remove english shell dependency in manage.sh script

Étienne Deparis7b9c8f777b93
diff --git a/manage.sh b/manage.sh
index a450c6dfd..6c609ec1e 100755
--- a/manage.sh
+++ b/manage.sh
@@ -270,6 +270,6 @@ Commands
"
}
-[ "$(command -V "$ACTION" | grep ' function$')" = "" ] \
+[ "$(sed -rn 's/^([^ ]+)\(\) \{$/\1/p' manage.sh | grep "$ACTION")" = "" ] \
&& help "action not found" \
|| "$ACTION" "$2"