Skip to content

Commit 02084cb

Browse files
committed
fix compatibility script (porting from develop)
1 parent 975d499 commit 02084cb

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

buildkite/scripts/check-compatibility.sh

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,25 @@ function download-docker {
2424
function try_docker_shas {
2525
DOCKER_SHAS=$1
2626
GOT_DOCKER=0
27-
2827
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
28+
29+
set +e
30+
download-docker $sha
31+
32+
if [ $? -eq 0 ] ; then
33+
GOT_DOCKER=1
34+
image_tag $sha
35+
break
36+
else
37+
echo "No docker available for SHA=$sha"
38+
fi
39+
set -e
3740
done
41+
42+
if [[ $GOT_DOCKER == 0 ]]; then
43+
echo "docker cannot be found for given shas: $DOCKER_SHAS"
44+
exit 1
45+
fi
3846
}
3947

4048
function image_id {

0 commit comments

Comments
 (0)