We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 975d499 commit 02084cbCopy full SHA for 02084cb
buildkite/scripts/check-compatibility.sh
@@ -24,17 +24,25 @@ function download-docker {
24
function try_docker_shas {
25
DOCKER_SHAS=$1
26
GOT_DOCKER=0
27
-
28
for sha in $DOCKER_SHAS; do
29
- download-docker $sha
30
- if [ $? -eq 0 ] ; then
31
- GOT_DOCKER=1
32
- image_tag $sha
33
- break
34
- else
35
- echo "No docker available for SHA=$sha"
36
- fi
+
+ set +e
+ download-docker $sha
+ if [ $? -eq 0 ] ; then
+ GOT_DOCKER=1
+ image_tag $sha
+ break
+ else
37
+ echo "No docker available for SHA=$sha"
38
+ fi
39
+ set -e
40
done
41
42
+ if [[ $GOT_DOCKER == 0 ]]; then
43
+ echo "docker cannot be found for given shas: $DOCKER_SHAS"
44
+ exit 1
45
46
}
47
48
function image_id {
0 commit comments