diff options
| author | 2019-06-30 16:35:24 -0700 | |
|---|---|---|
| committer | 2019-06-30 16:35:24 -0700 | |
| commit | 931ec33623e3b0b9c1d56621a677116be15108de (patch) | |
| tree | ec697ffa25d308407a93a8ba4757775f3715ecdb /scripts | |
| parent | CI: specify build context for Docker builds (diff) | |
CI: ensure count of builds returned by the API is > 0
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/check_dockerfiles.sh | 3 | 
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  |