aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-02-06 12:21:23 -0300
committerEuAndreh <eu@euandre.org>2020-02-06 12:21:23 -0300
commitd11737846ed46d4b9ba6246d81b1031d802d7b6e (patch)
tree5d6da764bd41747b16c85f008c2e6f98790bc49a /scripts
parentTODOs.org (diff)
downloadeuandre.org-d11737846ed46d4b9ba6246d81b1031d802d7b6e.tar.gz
euandre.org-d11737846ed46d4b9ba6246d81b1031d802d7b6e.tar.xz
Run assert-content.sh in test derivation
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
}