From 595006e5ac50932c2509f1697521161acd5e3305 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hauke=20T=C3=B6njes?= Date: Thu, 12 Aug 2021 23:55:06 +0200 Subject: [PATCH] Override existing files while unzipping - See https://github.com/dart-lang/setup-dart/issues/35 --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 58cd0bb..04f51d4 100755 --- a/setup.sh +++ b/setup.sh @@ -77,7 +77,7 @@ echo "Downloading ${URL}..." # Download installation zip. curl --connect-timeout 15 --retry 5 "$URL" > "${HOME}/dartsdk.zip" -unzip "${HOME}/dartsdk.zip" -d "${RUNNER_TOOL_CACHE}" > /dev/null +unzip -o "${HOME}/dartsdk.zip" -d "${RUNNER_TOOL_CACHE}" > /dev/null if [ $? -ne 0 ]; then echo -e "::error::Download failed! Please check passed arguments." exit 1