From bb1392436fe89c4d73231664cd4cf28426a3ede1 Mon Sep 17 00:00:00 2001 From: "Sebastian K. Sorensen" Date: Sun, 10 Jan 2021 17:49:20 +0100 Subject: [PATCH] Change to sh regex --- entrypoint.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 7543512..0e87e7b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -41,8 +41,7 @@ if [ -n "$INPUT_PRETTIER_PLUGINS" ]; then for plugin in $INPUT_PRETTIER_PLUGINS; do echo "checking $plugin" # check regex against @prettier/xyz - REGEX='(@prettier\/)+(plugin-[a-z\-]+)' - if ! [[ "$plugin" =~ "$REGEX" ]]; then + if ! echo "$plugin" | grep -Eq '(@prettier\/)+(plugin-[a-z\-]+)'; then echo "$plugin does not seem to be a valid @prettier/plugin-x plugin." exit 1 fi