From 36e70a65289e1010d89357659c751af28ebc043b Mon Sep 17 00:00:00 2001 From: Peter Leibiger Date: Thu, 3 Feb 2022 23:50:07 +0100 Subject: [PATCH] Download and unzip to temp folder and not $HOME --- setup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.sh b/setup.sh index e50928f..62d06f3 100755 --- a/setup.sh +++ b/setup.sh @@ -48,14 +48,14 @@ get_version_manifest() { download_archive() { archive_url="$MANIFEST_BASE_URL/$1" archive_name=$(basename $1) - archive_local="$HOME/$archive_name" + archive_local="$RUNNER_TEMP/$archive_name" curl --connect-timeout 15 --retry 5 $archive_url >$archive_local if [[ $archive_name == *zip ]]; then - unzip -q -o "$archive_local" -d "$HOME" + unzip -q -o "$archive_local" -d "$RUNNER_TEMP" shopt -s dotglob - mv ${HOME}/flutter/* "$2" + mv ${RUNNER_TEMP}/flutter/* "$2" shopt -u dotglob else tar xf "$archive_local" -C "$2" --strip-components=1