From d11737846ed46d4b9ba6246d81b1031d802d7b6e Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 6 Feb 2020 12:21:23 -0300 Subject: Run assert-content.sh in test derivation --- scripts/assert-content.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts') 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 } -- cgit v1.2.3