mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-14 22:09:26 +00:00
code review: use download_with_retries, remove custom tmp dir, set -e
Signed-off-by: Paolo Mainardi <paolo.mainardi@sparkfabrik.com>
This commit is contained in:
@@ -13,7 +13,7 @@ download_with_retries() {
|
||||
local NAME="${3:-${URL##*/}}"
|
||||
local COMPRESSED="$4"
|
||||
|
||||
if [ $COMPRESSED == "compressed" ]; then
|
||||
if [[ $COMPRESSED == "compressed" ]]; then
|
||||
COMMAND="curl $URL -4 -sL --compressed -o '$DEST/$NAME'"
|
||||
else
|
||||
COMMAND="curl $URL -4 -sL -o '$DEST/$NAME'"
|
||||
|
||||
Reference in New Issue
Block a user