From c83239d65305c36dba1aa2b367a724e14a20d96b Mon Sep 17 00:00:00 2001 From: Ulincsys Date: Tue, 3 Sep 2024 19:19:53 -0500 Subject: [PATCH] Simplify finding go Signed-off-by: Ulincsys --- scripts/install/workers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install/workers.sh b/scripts/install/workers.sh index 2b944e43a5..e31fb07d32 100755 --- a/scripts/install/workers.sh +++ b/scripts/install/workers.sh @@ -39,7 +39,7 @@ do done -if [ -f "/usr/local/go/bin/go" ] || [ -f "/usr/local/bin/go" ] || [ -f "/usr/bin/go" ] || [ -f "/snap/bin/go" ]; then +if [[ ! -z "$(which go)" ]]; then echo "found go!" else echo "Installing go!"