aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/assert-content.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/assert-content.sh b/scripts/assert-content.sh
index f9ea345..470fcb7 100755
--- a/scripts/assert-content.sh
+++ b/scripts/assert-content.sh
@@ -1,9 +1,13 @@
#!/usr/bin/env bash
set -Eeuo pipefail
+end="\033[0m"
+red="\033[0;31m"
+red() { echo -e "${red}${1}${end}"; }
+
JSON="${1:-}"
[[ -z "${JSON}" ]] && {
- echo 'Missing input JSON file.'
+ red 'Missing input JSON file.'
exit 2
}