Pass options to unzip

This commit is contained in:
Taiki Endo
2023-07-18 23:51:08 +09:00
parent 2f673b4841
commit 87c08913ae

View File

@@ -115,7 +115,7 @@ download_and_extract() {
else else
case "${url}" in case "${url}" in
*.zip) *.zip)
unzip tmp unzip -q tmp "${bin_in_archive#\./}"
mv "${bin_in_archive}" "${bin_dir}/" mv "${bin_in_archive}" "${bin_dir}/"
;; ;;
*) mv tmp "${installed_bin}" ;; *) mv tmp "${installed_bin}" ;;
@@ -470,7 +470,7 @@ for tool in "${tools[@]}"; do
( (
cd "${tmp_dir}" cd "${tmp_dir}"
download_and_checksum "${url}" "${checksum}" download_and_checksum "${url}" "${checksum}"
unzip tmp unzip -q tmp
mv "bin/protoc${exe}" "${bin_dir}/" mv "bin/protoc${exe}" "${bin_dir}/"
mkdir -p "${include_dir}/" mkdir -p "${include_dir}/"
cp -r include/. "${include_dir}/" cp -r include/. "${include_dir}/"