diff --git a/hack/make.sh b/hack/make.sh index 58561e2a01..41a53f6bfd 100755 --- a/hack/make.sh +++ b/hack/make.sh @@ -79,7 +79,7 @@ DEFAULT_BUNDLES=( ) VERSION=$(< ./VERSION) -if command -v git &> /dev/null && git rev-parse &> /dev/null; then +if command -v git &> /dev/null && [ -d .git ] && git rev-parse &> /dev/null; then GITCOMMIT=$(git rev-parse --short HEAD) if [ -n "$(git status --porcelain --untracked-files=no)" ]; then GITCOMMIT="$GITCOMMIT-unsupported"