tv elm-package-proxy: unzip -> p7zip

This commit is contained in:
tv 2020-11-27 11:27:42 +01:00
parent a054df1437
commit f654a4ce86

View File

@ -75,7 +75,7 @@ in {
pkgs.findutils pkgs.findutils
pkgs.gnugrep pkgs.gnugrep
pkgs.jq pkgs.jq
pkgs.unzip pkgs.p7zip
]} ]}
export PATH export PATH
file_response() {( file_response() {(
@ -128,7 +128,7 @@ in {
;; ;;
elm.json) elm.json)
if ! test -f "$elmjson"; then if ! test -f "$elmjson"; then
unzip -p "$zipball" \*/elm.json > "$elmjson" 7z x -so "$zipball" \*/elm.json > "$elmjson"
fi fi
file_response 200 OK "$elmjson" 'application/json; charset=UTF-8' file_response 200 OK "$elmjson" 'application/json; charset=UTF-8'
exit exit