Fix darwin handling

This commit is contained in:
Kevin Cotugno 2024-02-15 16:00:56 -07:00
parent 5cde6657c9
commit f25a2e0cc2

View File

@ -53,8 +53,8 @@ function detect_package_manager() {
check_package_cmd="pacman -Q" check_package_cmd="pacman -Q"
elif [ "x$OS" = "xdebian" ]; then elif [ "x$OS" = "xdebian" ]; then
install_package_cmd="${sudo}apt-get install -y" install_package_cmd="${sudo}apt-get install -y"
elif [ "x$OS" = "darwin" ]; then elif [ "x$OS" = "xdarwin" ]; then
if [ "x$user" != "xroot" ]; then if [ "x$user" = "xroot" ]; then
echo "Running as root on macOS is unsupported" echo "Running as root on macOS is unsupported"
exit 1 exit 1
fi fi