Skip to content

Commit

Permalink
possible download fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sarg3nt committed May 25, 2024
1 parent aa4c308 commit c240934
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ download_release() {
echo "$download_file"
tar -tvf "$download_file"

curl -fsSL -o /tmp/asdf.kB3Z/downloads/micro/2.0.13/micro.tar.gz -C - https://github.com/zyedidia/micro/releases/download/v2.0.13/micro-2.0.13-linux64.tar.gz

case "$extension" in
"zip") unzip -j "$download_file" -d "$ASDF_DOWNLOAD_PATH/micro-$version" ;;
"tar.gz") tar -xvzf "$download_file" "$ASDF_DOWNLOAD_PATH/micro-$version/micro" ;;
"zip") unzip -j "$download_file" -d "micro-$version" ;;
"tar.gz") tar -xvzf "$download_file" "micro-$version/micro" ;;
esac

# tar: /tmp/asdf.i3W6/downloads/micro/2.0.13/micro-2.0.13/micro: Not found in archive

mv "$ASDF_DOWNLOAD_PATH/micro-$version/micro" "$filename"
rm "$download_file"
rm -rf "$ASDF_DOWNLOAD_PATH/micro-$version"
Expand Down

0 comments on commit c240934

Please sign in to comment.