diff --git a/entrypoint.sh b/entrypoint.sh index d427fa4..0705eef 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -51,13 +51,14 @@ fi echo "Prettifying files..." echo "Files:" -prettier $INPUT_PRETTIER_OPTIONS || echo "Problem running prettier with $INPUT_PRETTIER_OPTIONS" +prettier $INPUT_PRETTIER_OPTIONS PRETTIER_RESULT=$? # To keep runtime good, just continue if something was changed if _git_changed; then if $INPUT_DRY; then if [[ "$PRETTIER_RESULT" -eq 1 ]]; then + echo "Problem running prettier with $INPUT_PRETTIER_OPTIONS" echo "Prettier found unpretty files!" exit 1 else