mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-27 01:20:28 +00:00
Pass options to unzip
This commit is contained in:
4
main.sh
4
main.sh
@@ -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}" ;;
|
||||
@@ -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}/"
|
||||
|
||||
Reference in New Issue
Block a user