Skip to content

Commit

Permalink
Pass options to unzip
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jul 18, 2023
1 parent 2f673b4 commit 87c0891
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ download_and_extract() {
else
case "${url}" in
*.zip)
unzip tmp
unzip -q tmp "${bin_in_archive#\./}"
mv "${bin_in_archive}" "${bin_dir}/"
;;
*) mv tmp "${installed_bin}" ;;
Expand Down Expand Up @@ -470,7 +470,7 @@ for tool in "${tools[@]}"; do
(
cd "${tmp_dir}"
download_and_checksum "${url}" "${checksum}"
unzip tmp
unzip -q tmp
mv "bin/protoc${exe}" "${bin_dir}/"
mkdir -p "${include_dir}/"
cp -r include/. "${include_dir}/"
Expand Down

0 comments on commit 87c0891

Please sign in to comment.