other: improves the log output by not having and out of range message

This commit is contained in:
Fabricio Sander
2021-03-25 21:36:51 -03:00
parent 5b4a6a0183
commit 2069f26b6e

View File

@@ -49,7 +49,7 @@ if [ -n "$INPUT_PRETTIER_PLUGINS" ]; then
npm install --silent --global $INPUT_PRETTIER_PLUGINS npm install --silent --global $INPUT_PRETTIER_PLUGINS
fi fi
PRETTIER_RESULT="" PRETTIER_RESULT=0
echo "Prettifying files..." echo "Prettifying files..."
echo "Files:" echo "Files:"
prettier $INPUT_PRETTIER_OPTIONS || { PRETTIER_RESULT=$?; echo "Problem running prettier with $INPUT_PRETTIER_OPTIONS"; } prettier $INPUT_PRETTIER_OPTIONS || { PRETTIER_RESULT=$?; echo "Problem running prettier with $INPUT_PRETTIER_OPTIONS"; }