diff options
author | Ben Gamari <ben@smart-cactus.org> | 2019-12-06 14:19:35 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2019-12-06 15:55:52 -0500 |
commit | ba46883082b97ebc12ca6ab0f1ba2abb55cbc93a (patch) | |
tree | 4fb7dfc24057b64b3765f968796573fc2afe282a | |
parent | 9ddb698d0d00ac93bd0c14490447c955295a2094 (diff) | |
download | haskell-ba46883082b97ebc12ca6ab0f1ba2abb55cbc93a.tar.gz |
Colorize changelog check
-rwxr-xr-x | .gitlab/linters/check-changelogs.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/.gitlab/linters/check-changelogs.sh b/.gitlab/linters/check-changelogs.sh index fa2801bfb1..0a0b6328b9 100755 --- a/.gitlab/linters/check-changelogs.sh +++ b/.gitlab/linters/check-changelogs.sh @@ -2,7 +2,13 @@ set -e +COLOR_RED="\e[31m" +COLOR_GREEN="\e[32m" +COLOR_NONE="\e[0m" + grep TBA libraries/*/changelog.md && ( - echo "Error: Found \"TBA\"s in changelogs." + echo -e "${COLOR_RED}Error: Found \"TBA\"s in changelogs.${COLOR_NONE}" exit 1 ) + +echo -e "${COLOR_GREEN}changelogs look okay.${COLOR_NONE}" |