core: 修复 subshell 导致无法安装软件包的问题
This commit is contained in:
parent
ece55ab8bc
commit
ec18858630
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user