ci (smoke): fix fly cli download, don't set +e
this prevented 'go mod download' failures from exiting the build. the
fly download had to be reverted back to just downloading the binary
(there was a period of time, un-shipped, where it returned a tarball).
@@ -25,7 +25,6 @@ else
export ATC_GUEST_PASSWORD=guest
fi
-set +e
ticks=0
echo -n 'waiting for ATC to be running...'
until curl -sf "$ATC_URL/api/v1/info"; do
@@ -43,13 +42,13 @@ done
echo 'ok!'
-curl "$ATC_URL/api/v1/cli?arch=amd64&platform=linux" | tar -zxf - -C /usr/local/bin
-if [ $? -ne 0 ]; then
+if curl "$ATC_URL/api/v1/cli?arch=amd64&platform=linux" -O /usr/local/bin/fly; then
+ chmod +x /usr/local/bin/fly
+else
pushd concourse/fly
go build -o /usr/local/bin/fly
popd
fi
-set -e
fly --version
