From 7b32d45b42eabae24a13d6eac81f017d0feb8aa1 Mon Sep 17 00:00:00 2001 From: filesite-io Date: Tue, 25 Jun 2024 07:36:13 +0800 Subject: [PATCH] bug fix for docker install detect function --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index c175ba2..de9760d 100755 --- a/install.sh +++ b/install.sh @@ -31,7 +31,8 @@ getCpuType () { # 检测是否已经安装了docker # 返回值:0 - 未安装,1 - 已安装 detectDockerInstalled () { - if [ command -v docker > /dev/null ]; then + res=`command -v docker | wc -l` + if [ $res -gt 0 ]; then return 1 fi