Skip to content

Commit

Permalink
Merge pull request #12 from aretrosen/main
Browse files Browse the repository at this point in the history
fix(download): Fixes download path for dev-2024-11
  • Loading branch information
jtakakura authored Nov 17, 2024
2 parents 64de2c6 + f41ea71 commit 2f9fcd0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions bin/download
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,19 @@ if [ -f "$ASDF_DOWNLOAD_PATH/dist.zip" ]; then
unzip -qq "$ASDF_DOWNLOAD_PATH/dist.zip" -d "$ASDF_DOWNLOAD_PATH" || fail "Could not extract $ASDF_DOWNLOAD_PATH/dist.zip"
rm "$ASDF_DOWNLOAD_PATH/dist.zip"
fi
for tarball in "$ASDF_DOWNLOAD_PATH/dist.tar."{gz,bz2,xz}; do
if [[ -f $tarball ]]; then
tar xf "$tarball" --directory="$ASDF_DOWNLOAD_PATH" || fail "Could not extract $tarball"
rm "$tarball"
fi
done

for nested_folder in "$ASDF_DOWNLOAD_PATH/$TOOL_NAME-$platform-"*; do
if [[ -d $nested_folder ]]; then
mv "$nested_folder"/* "$ASDF_DOWNLOAD_PATH" || fail "Could not move contents of $nested_folder"
rmdir "$nested_folder" || fail "Could not remove $nested_folder"
fi
done

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

0 comments on commit 2f9fcd0

Please sign in to comment.