From a20371f2d26c54b69c0d16634151ba398ba52a6d Mon Sep 17 00:00:00 2001 From: Conrad Date: Sun, 10 Jan 2021 21:04:03 +0100 Subject: [PATCH] Slightly adjusted the printed messages --- entrypoint.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 0e87e7b..023e697 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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