From 5f4e0e306869995521ba1d2a532d5c7e6732e226 Mon Sep 17 00:00:00 2001 From: Dmitry Filimonov Date: Fri, 24 Sep 2021 12:57:36 -0700 Subject: [PATCH] fixes mac builds --- scripts/web-postinstall.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/scripts/web-postinstall.sh b/scripts/web-postinstall.sh index 27d9ade90f..95354b150e 100755 --- a/scripts/web-postinstall.sh +++ b/scripts/web-postinstall.sh @@ -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