Fix darwin handling
This commit is contained in:
parent
5cde6657c9
commit
f25a2e0cc2
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user