diff options
author | EuAndreh <eu@euandre.org> | 2020-02-06 12:21:23 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-02-06 12:21:23 -0300 |
commit | d11737846ed46d4b9ba6246d81b1031d802d7b6e (patch) | |
tree | 5d6da764bd41747b16c85f008c2e6f98790bc49a /scripts | |
parent | TODOs.org (diff) | |
download | euandre.org-d11737846ed46d4b9ba6246d81b1031d802d7b6e.tar.gz euandre.org-d11737846ed46d4b9ba6246d81b1031d802d7b6e.tar.xz |
Run assert-content.sh in test derivation
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/assert-content.sh | 6 |
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 } |