add zypper support for SUSE

This commit is contained in:
Araputa
2026-01-17 00:20:02 +08:00
committed by GitHub
parent 3750157987
commit e97302b57a
2 changed files with 10 additions and 6 deletions

View File

@@ -58,8 +58,8 @@ _wget() {
wget --no-check-certificate "$@"
}
# yum or apt-get
cmd=$(type -P apt-get || type -P yum)
# apt-get, yum or zypper
cmd=$(type -P apt-get || type -P yum || type -P zypper)
# x64
case $(arch) in