aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2019-06-30 16:35:24 -0700
committerGravatar MarkKoz <[email protected]>2019-06-30 16:35:24 -0700
commit931ec33623e3b0b9c1d56621a677116be15108de (patch)
treeec697ffa25d308407a93a8ba4757775f3715ecdb
parentCI: specify build context for Docker builds (diff)
CI: ensure count of builds returned by the API is > 0
-rwxr-xr-xscripts/check_dockerfiles.sh3
1 files changed, 2 insertions, 1 deletions
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