mirror of
https://github.com/bin456789/reinstall.git
synced 2025-06-25 13:49:51 +00:00
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 ;;
|
unsquashfs) command -v zypper && pkg=squashfs || pkg=squashfs-tools ;;
|
||||||
lsmem) pkg=util-linux ;;
|
lsmem) pkg=util-linux ;;
|
||||||
nslookup | dig)
|
nslookup | dig)
|
||||||
(command -v apk && pkg="bind-tools") ||
|
{ command -v apk && pkg="bind-tools"; } ||
|
||||||
(command -v apt && pkg="bind9-dnsutils") ||
|
{ command -v apt && pkg="bind9-dnsutils"; } ||
|
||||||
(command -v pacman && pkg="bind") ||
|
{ command -v pacman && pkg="bind"; } ||
|
||||||
(command -v yum dnf zypper && pkg="bind-utils")
|
{ command -v yum dnf zypper && pkg="bind-utils"; }
|
||||||
;;
|
;;
|
||||||
*) pkg=$cmd ;;
|
*) pkg=$cmd ;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user