We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f32bf19 commit 97085faCopy full SHA for 97085fa
1 file changed
.ci/scripts/install-docker-compose.sh
@@ -9,5 +9,12 @@ DC_CMD="${HOME}/bin/docker-compose"
9
10
mkdir -p "${HOME}/bin"
11
12
-curl -sSLo "${DC_CMD}" "https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)"
13
-chmod +x "${DC_CMD}"
+if curl -sSLo "${DC_CMD}" "https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" ; then
+ chmod +x "${DC_CMD}"
14
+else
15
+ echo "Something bad with the download, let's delete the corrupted binary"
16
+ if [ -e "${DC_CMD}" ] ; then
17
+ rm "${DC_CMD}"
18
+ fi
19
+ exit 1
20
+fi
0 commit comments