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