From f25a2e0cc241e32e6e9b82df7ffb3a07950b30bd Mon Sep 17 00:00:00 2001 From: Kevin Cotugno Date: Thu, 15 Feb 2024 16:00:56 -0700 Subject: [PATCH] Fix darwin handling --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 1cf37de..58f145e 100755 --- a/install.sh +++ b/install.sh @@ -53,8 +53,8 @@ function detect_package_manager() { check_package_cmd="pacman -Q" elif [ "x$OS" = "xdebian" ]; then install_package_cmd="${sudo}apt-get install -y" - elif [ "x$OS" = "darwin" ]; then - if [ "x$user" != "xroot" ]; then + elif [ "x$OS" = "xdarwin" ]; then + if [ "x$user" = "xroot" ]; then echo "Running as root on macOS is unsupported" exit 1 fi