Skip to content

Commit

Permalink
prettier: tolerate git not managing files
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref committed Feb 14, 2024
1 parent f918292 commit 82fa305
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prettier/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,11 @@ prettier_output_summary
# Ignore node modules and other action created files
if [ -d 'node_modules' ]; then
rm -r node_modules/
git checkout -- node_modules/ 2> /dev/null >/dev/null
git checkout -- node_modules/ 2> /dev/null >/dev/null || true
fi

if [ -f 'package-lock.json' ]; then
git checkout -- package-lock.json 2> /dev/null >/dev/null
git checkout -- package-lock.json 2> /dev/null >/dev/null || true
fi

# To keep runtime good, just continue if something was changed
Expand Down

0 comments on commit 82fa305

Please sign in to comment.