mirror of
https://github.com/creyD/prettier_action.git
synced 2026-04-12 19:30:30 +02:00
Fix issue with if statement
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user