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