From 723936afd860bbe8071050f1d86dd5be31737695 Mon Sep 17 00:00:00 2001 From: Ing Date: Thu, 15 May 2025 13:26:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=84=9A=E6=9C=AC=E4=B8=AD?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E9=87=8D=E5=AE=9A=E5=90=91=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- localbuild.sh | 2 +- scripts/func.sh | 2 +- sourcebuild.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/localbuild.sh b/localbuild.sh index 4ff3a10f..26cc4d6c 100755 --- a/localbuild.sh +++ b/localbuild.sh @@ -39,7 +39,7 @@ function create() { sudo apt install -y locales busybox dialog gettext sed gawk jq curl sudo apt install -y python-is-python3 python3-pip libelf-dev qemu-utils dosfstools cpio xz-utils lz4 lzma bzip2 gzip zstd # sudo snap install yq - if ! type yq &>/dev/null || ! yq --version 2>/dev/null | grep -q "v4."; then + if ! type yq >/dev/null 2>&1 || ! yq --version 2>/dev/null | grep -q "v4."; then sudo curl -kL https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -o /usr/bin/yq && sudo chmod a+x /usr/bin/yq fi diff --git a/scripts/func.sh b/scripts/func.sh index 89cac4c4..205628c1 100755 --- a/scripts/func.sh +++ b/scripts/func.sh @@ -329,7 +329,7 @@ function createvmx() { local BLIMAGE=${1} local VMNAME=${2} - if ! type qemu-img &>/dev/null; then + if ! type qemu-img >/dev/null 2>&1; then sudo apt install -y qemu-utils fi diff --git a/sourcebuild.sh b/sourcebuild.sh index be94e8f6..877a90b7 100755 --- a/sourcebuild.sh +++ b/sourcebuild.sh @@ -9,7 +9,7 @@ # sudo apt install -y locales busybox dialog gettext sed gawk jq curl # sudo apt install -y python-is-python3 python3-pip libelf-dev qemu-utils dosfstools cpio xz-utils lz4 lzma bzip2 gzip zstd # # sudo snap install yq -# if ! type yq &>/dev/null || ! yq --version 2>/dev/null | grep -q "v4."; then +# if ! type yq >/dev/null 2>&1 || ! yq --version 2>/dev/null | grep -q "v4."; then # sudo curl -kL https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -o /usr/bin/yq && sudo chmod a+x /usr/bin/yq # fi #