From 690ac1d16d18500d8a753ccfec256428c87ce1e0 Mon Sep 17 00:00:00 2001 From: Divinesoumyadip Date: Sat, 21 Mar 2026 13:03:13 +0000 Subject: [PATCH] setup: skip sudo requirement on macOS for Homebrew compatibility Signed-off-by: Divinesoumyadip --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 22a84cfea8..5491874ce9 100755 --- a/setup.sh +++ b/setup.sh @@ -5,7 +5,7 @@ set -euo pipefail # allow this script to be invoked from any folder DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -if [ $EUID -ne 0 ]; then +if [[ "$OSTYPE" != "darwin"* ]] && [ $EUID -ne 0 ]; then echo "This script must be run with sudo" exit 1 fi