Skip to content

Commit 5709d8a

Browse files
author
OpenShift Bot
authored
Merge pull request #1999 from benjaminapetersen/bpeterse/verify-dist-fail-message
Merged by openshift-bot
2 parents 59d0df1 + 07faf47 commit 5709d8a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

hack/verify-dist.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
set -e
44

5+
RED='\033[0;31m'
6+
NOCOLOR='\033[0m'
7+
GREEN='\033[0;32m'
8+
59
# We don't need grunt to be installed globally for the system, so
610
# we can amend our path to look into the local node_modules for the
711
# correct binaries.
@@ -12,9 +16,9 @@ grunt build
1216

1317
echo "Verifying that checked in built files under dist match the source..."
1418
if [[ $(git status -s -u dist*) ]]; then
19+
echo -e "${RED}Built /dist does not match what is committed, run 'grunt build' and include the results in your commit.${NOCOLOR}"
1520
git diff --exit-code dist*
16-
echo "Built dist does not match what is committed, run 'grunt build' and include the results in your commit."
1721
exit 1
1822
else
19-
echo "Verified."
23+
echo -e "${GREEN}Verified. Rebuilt /dist matches what has been committed.${NOCOLOR}"
2024
fi

0 commit comments

Comments
 (0)