Merge pull request #2 from sebastianks/check-plugin-name

Fix issue with if statement
This commit is contained in:
Sebastian Kolind Sørensen
2021-01-10 16:43:23 +01:00
committed by GitHub

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