From ec18858630fd1ff2f8185a045e7c270a09dbf242 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Wed, 2 Aug 2023 00:42:19 +0800 Subject: [PATCH] =?UTF-8?q?core:=20=E4=BF=AE=E5=A4=8D=20subshell=20?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E6=97=A0=E6=B3=95=E5=AE=89=E8=A3=85=E8=BD=AF?= =?UTF-8?q?=E4=BB=B6=E5=8C=85=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reinstall.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reinstall.sh b/reinstall.sh index de36ed6..f7f2af7 100644 --- a/reinstall.sh +++ b/reinstall.sh @@ -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