Skip to content

Commit

Permalink
Unzip linux artifacts after download
Browse files Browse the repository at this point in the history
  • Loading branch information
w-enterprises committed Nov 29, 2021
1 parent 678d096 commit 2405c95
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ function main() {
download "win-x64"
download "linux-x64"
download "linux-arm"

extract "linux-x64.zip"
extract "linux-arm.zip"
}

function download(){
Expand All @@ -20,4 +23,11 @@ function download(){
curl -L -H "Authorization: Bearer $GITHUB_PAT" $link --output "$target_dir/$1.zip"
}

function extract(){
pushd "$target_dir" || exit
unzip "$1"
rm "$1"
popd || exit
}

main

0 comments on commit 2405c95

Please sign in to comment.