Mercurial > ec-dotfiles
diff update-vendor @ 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 | 1f8218896f2a |
children |
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}" ) }