Skip to content

Commit

Permalink
Check that working tree is clean before building
Browse files Browse the repository at this point in the history
  • Loading branch information
kdspaul authored and dbernadett committed Aug 19, 2022
1 parent 5cfc9b7 commit 7ae7b1e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/mac-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@
# Copyright 2022 Twitter, Inc.
# SPDX-License-Identifier: Apache-2.0

set -euo pipefail

set -eu
set -o pipefail
# Run some basic checks to make sure that we are building off a clean state
if git status --porcelain | grep -q . ; then
echo "Please clean your working tree before building"
exit 1
fi

set -x

Expand Down

0 comments on commit 7ae7b1e

Please sign in to comment.