Skip to content

Commit

Permalink
add download
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredLunde committed Sep 29, 2024
1 parent 96b0494 commit dad4fa5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions bin/download
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ release_file="$ASDF_DOWNLOAD_PATH/$TOOL_NAME-$ASDF_INSTALL_VERSION$ext_name"
download_release "$ASDF_INSTALL_VERSION" "$release_file"

# Extract contents of tar.gz file into the download directory
if [[ $ext_name == ".zip" ]]; then
unzip -o "$release_file" -d "$ASDF_DOWNLOAD_PATH" || fail "Could not extract $release_file"
else
tar -xzf "$release_file" -C "$ASDF_DOWNLOAD_PATH" --strip-components=1 || fail "Could not extract $release_file"
fi
tar -xzf "$release_file" -C "$ASDF_DOWNLOAD_PATH" --strip-components=1 || fail "Could not extract $release_file"

# Remove the tar.gz file since we don't need to keep it
rm "$release_file"

0 comments on commit dad4fa5

Please sign in to comment.