Skip to content

Commit 07faf47

Browse files
Fix the hack/verify-dist.sh message
- currently the verify-dist.sh error message is not printing - alternates the order of fail output to ensure message prints - adds some color codes to make it easier to find messages when scanning lengthy logs - the desire is for this to work in travis
1 parent 59d0df1 commit 07faf47

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Diff for: hack/verify-dist.sh

+6-2
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)