diff --git a/src/balena-tests/balena.sh b/src/balena-tests/balena.sh index f1b1f48..e4c7249 100755 --- a/src/balena-tests/balena.sh +++ b/src/balena-tests/balena.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # shellcheck disable=SC2154,SC2034,SC1090 -set -ae +set -aeu curl_opts="--retry 3 --fail" if [[ $VERBOSE =~ on|On|Yes|yes|true|True ]]; then @@ -17,7 +17,7 @@ function remove_test_assets() { rm -rf /balena/config.json \ "${GUEST_IMAGE}" \ "${GUEST_IMAGE%.*}.ready" \ - "${tmpbuild}" \ + "${tmpbuild:-}" \ /tmp/*.img } @@ -39,14 +39,16 @@ function shutdown_dut() { local balena_device_uuid balena_device_uuid="$(cat