From 931ec33623e3b0b9c1d56621a677116be15108de Mon Sep 17 00:00:00 2001 From: MarkKoz Date: Sun, 30 Jun 2019 16:35:24 -0700 Subject: CI: ensure count of builds returned by the API is > 0 --- scripts/check_dockerfiles.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/check_dockerfiles.sh') diff --git a/scripts/check_dockerfiles.sh b/scripts/check_dockerfiles.sh index 015fa41..c84c61f 100755 --- a/scripts/check_dockerfiles.sh +++ b/scripts/check_dockerfiles.sh @@ -24,7 +24,8 @@ get_build() { response="$(curl -sSL "${url}")" if [[ -z "${response}" ]] \ - || ! printf '%s' "${response}" | jq -re '.count' + || ! count="$(printf '%s' "${response}" | jq -re '.count')" \ + || (( "${count}" < 1 )) then return 1 else -- cgit v1.2.3