Skip to content

Commit

Permalink
fixes mac builds
Browse files Browse the repository at this point in the history
  • Loading branch information
petethepig committed Sep 24, 2021
1 parent 6b055bb commit 5f4e0e3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions scripts/web-postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
# web-postinstall.sh
# to be run by yarn/npm after installing

# don't run where git is not present (probably CI)
if command -v git; then
# makes git blame ignore commits that are purely reformatting code
git config blame.ignoreRevsFile .git-blame-ignore-revs
# don't run where .git directory is not present (probably mac builds / CI)
if [ -d ".git" ]; then
# don't run where git is not present (probably CI)
if command -v git; then
# makes git blame ignore commits that are purely reformatting code
git config blame.ignoreRevsFile .git-blame-ignore-revs
fi
fi

0 comments on commit 5f4e0e3

Please sign in to comment.