From 7b9c8f777b9390fa915c365d785f07afd067f0e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Deparis?= Date: Mon, 7 Jan 2019 12:20:57 +0100 Subject: [PATCH] fix: Remove english shell dependency in manage.sh script --- manage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"