changeset 725:0a896ffe3029

Switch to tgz bsdunzip doesn't seem to unzip from stdin.
author nanaya <me@nanaya.net>
date Mon, 19 Aug 2024 17:03:52 +0900
parents 6faa6995937f
children 78469331407e
files update-vendor
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/update-vendor	Tue Sep 03 19:05:14 2024 +0900
+++ b/update-vendor	Mon Aug 19 17:03:52 2024 +0900
@@ -3,7 +3,7 @@
 set -u
 set -e
 
-for _cmd in wget unzip; do
+for _cmd in tar wget; do
     if command -v "$_cmd" > /dev/null 2>&1; then :
     else
         echo "${_cmd} is required"
@@ -22,7 +22,7 @@
 
 _get_pack_github() {
 (
-    wget -nv -O - "https://github.com/${1}/${2}/archive/refs/heads/${3}.zip" | unzip -q -
+    wget -nv -O - "https://github.com/${1}/${2}/archive/refs/heads/${3}.tar.gz" | tar -zxf -
     mv "./${2}-${3}" "./${2}"
 )
 }