chore: update install script

This commit is contained in:
iff 2024-12-10 19:40:12 +01:00
parent a3d3c6f143
commit d28b80b304
2 changed files with 3 additions and 3 deletions

View file

@ -106,7 +106,7 @@ jobs:
uses: ncipollo/release-action@v1 uses: ncipollo/release-action@v1
with: with:
artifacts: | artifacts: |
*.tar.gz *.tar.zst
*.zip *.zip
*.deb *.deb
allowUpdates: true allowUpdates: true

View file

@ -43,7 +43,7 @@ main() {
assert_nz "${_package}" "package" assert_nz "${_package}" "package"
echo "Downloaded package: ${_package}" echo "Downloaded package: ${_package}"
case "${_package}" in case "${_package}" in
*.tar.gz) *.tar.zst)
need_cmd tar need_cmd tar
ensure tar -xf "${_package}" ensure tar -xf "${_package}"
;; ;;
@ -154,7 +154,7 @@ download_pay_respects() {
local _ext local _ext
case "${_package_url}" in case "${_package_url}" in
*.tar.gz) _ext="tar.gz" ;; *.tar.zst) _ext="tar.zst" ;;
*.zip) _ext="zip" ;; *.zip) _ext="zip" ;;
*) err "unsupported package format: ${_package_url}" ;; *) err "unsupported package format: ${_package_url}" ;;
esac esac