From 731317532ce96bd2eee4a7dd6ccdc15b8b7f339b Mon Sep 17 00:00:00 2001 From: ruotiantang Date: Wed, 30 Oct 2024 15:46:38 +0800 Subject: [PATCH] =?UTF-8?q?worker=E5=92=8Cagent=E6=94=AF=E6=8C=81java17?= =?UTF-8?q?=E5=92=8Cjava8=E5=90=8C=E6=AD=A5=E8=BF=90=E8=A1=8C=20#10586?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 优化下载安装脚本 --- support-files/agent-package/script/linux/install.sh | 2 +- support-files/agent-package/script/macos/install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/support-files/agent-package/script/linux/install.sh b/support-files/agent-package/script/linux/install.sh index 969962c81ca..83c2749f05c 100644 --- a/support-files/agent-package/script/linux/install.sh +++ b/support-files/agent-package/script/linux/install.sh @@ -1,7 +1,7 @@ #!/bin/bash function checkFiles() { - if [ "$enable_check_files" == "true" ]; then + if [[ "$enable_check_files" == "true" ]]; then # 检查当前目录是否有文件 if [ "$(find . -maxdepth 1 -type f | wc -l)" -gt 0 ]; then echo "fatal: current directory is not empty, please install in an empty directory" diff --git a/support-files/agent-package/script/macos/install.sh b/support-files/agent-package/script/macos/install.sh index e170a116e32..863d9449d7b 100644 --- a/support-files/agent-package/script/macos/install.sh +++ b/support-files/agent-package/script/macos/install.sh @@ -1,7 +1,7 @@ #!/bin/bash function checkFiles() { - if [ "$enable_check_files" == "true" ]; then + if [[ "$enable_check_files" == "true" ]]; then # 检查当前目录是否有文件 if [ "$(find . -maxdepth 1 -type f | wc -l)" -gt 0 ]; then echo "fatal: current directory is not empty, please install in an empty directory"