Slightly adjusted the printed messages

This commit is contained in:
2021-01-10 21:04:03 +01:00
committed by GitHub
parent 2b4b2c18e7
commit a20371f2d2

View File

@@ -39,13 +39,12 @@ esac
# Install plugins
if [ -n "$INPUT_PRETTIER_PLUGINS" ]; then
for plugin in $INPUT_PRETTIER_PLUGINS; do
echo "checking $plugin"
echo "Checking plugin: $plugin"
# check regex against @prettier/xyz
if ! echo "$plugin" | grep -Eq '(@prettier\/)+(plugin-[a-z\-]+)'; then
echo "$plugin does not seem to be a valid @prettier/plugin-x plugin."
echo "$plugin does not seem to be a valid @prettier/plugin-x plugin. Exiting."
exit 1
fi
echo "$plugin seem to be a valid Prettier plugin"
done
npm install --silent --global $INPUT_PRETTIER_PLUGINS
fi