mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-09 14:20:29 +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
|
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}/"
|
||||||
|
|||||||
Reference in New Issue
Block a user