aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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