Skip to content

Commit

Permalink
Update builder tool sh
Browse files Browse the repository at this point in the history
  • Loading branch information
trubbio83 committed Apr 30, 2024
1 parent 6b8f150 commit ad06fdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core-builder-tool/builder-tool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,14 @@ while IFS=, read -r protocol destination source; do
echo "Downloading $minio/$rebuilt_url"
echo "to $destination_dir/$destination"
mc cp "$minio/$rebuilt_url" "$destination_dir/$destination"
unzip "$destination_dir/$destination"
unzip "$destination_dir/$destination" -d "$destination_dir"
;;
"http" | "https") # for now accept only zip file - check if file is a zip. unpack zip
echo "Protocol: $protocol"
echo "Downloading $source"
echo "to $destination_dir/$destination"
curl -o "$destination_dir/$destination" -L "$source"
unzip "$destination_dir/$destination"
unzip "$destination_dir/$destination" -d "$destination_dir"
;;
# Add more cases for other protocols as needed
*)
Expand Down

0 comments on commit ad06fdb

Please sign in to comment.