From e74bc698aaec007e0371e1c52dd9af9b32731be0 Mon Sep 17 00:00:00 2001 From: "joey.ljy" Date: Sat, 20 Jul 2024 23:09:32 +0800 Subject: [PATCH] Use -d to check cmake install dir --- scripts/setup-helper-functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/setup-helper-functions.sh b/scripts/setup-helper-functions.sh index ab0c463c40a3..127dea70c0f9 100755 --- a/scripts/setup-helper-functions.sh +++ b/scripts/setup-helper-functions.sh @@ -160,7 +160,7 @@ function wget_and_untar { } function cmake_install { - if [ -n "$1" ]; then + if [ -d "$1" ]; then DIR="$1" shift else