core: 修复 subshell 导致无法安装软件包的问题

This commit is contained in:
bin456789 2023-08-02 00:42:19 +08:00
parent ece55ab8bc
commit ec18858630
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -514,10 +514,10 @@ install_pkg() {
unsquashfs) command -v zypper && pkg=squashfs || pkg=squashfs-tools ;;
lsmem) pkg=util-linux ;;
nslookup | dig)
(command -v apk && pkg="bind-tools") ||
(command -v apt && pkg="bind9-dnsutils") ||
(command -v pacman && pkg="bind") ||
(command -v yum dnf zypper && pkg="bind-utils")
{ command -v apk && pkg="bind-tools"; } ||
{ command -v apt && pkg="bind9-dnsutils"; } ||
{ command -v pacman && pkg="bind"; } ||
{ command -v yum dnf zypper && pkg="bind-utils"; }
;;
*) pkg=$cmd ;;
esac