Fix issue with if statement

This commit is contained in:
Sebastian K. Sorensen
2021-01-10 16:41:47 +01:00
parent 656daa9f97
commit 33b1eff486

View File

@@ -41,7 +41,7 @@ if [ -n "$INPUT_PRETTIER_PLUGINS" ]; then
for plugin in $INPUT_PRETTIER_PLUGINS; do
# check regex against @prettier/xyz
REGEX = '(@prettier\/)+(plugin-[a-z\-]+)'
if ! [ "$plugin" =~ "$REGEX" ]
if ! [ "$plugin" =~ "$REGEX" ]; then
echo "Specified plugins does not seem to be valid @prettier/x plugins."
exit 1
fi