-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(pr): dedicate step for uncommitted files check (#271)
- Loading branch information
Showing
2 changed files
with
38 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
source ./scripts/_colors.sh; | ||
source ./scripts/_header.sh; | ||
echo "--------" | ||
echo "${GREEN}Check for uncommitted build outputs...${NC}" | ||
echo "Check for uncommitted build outputs..." | ||
echo "--------" | ||
if [ -z $(git status --porcelain) ]; | ||
then | ||
echo "${GREEN}Working copy is clean" | ||
echo "Working copy is clean" | ||
else | ||
echo "${RED}Please commit your changes" | ||
echo "Please commit your changes" | ||
git status | ||
exit 1 | ||
fi |