Fix root user check for non-macOS systems

This commit is contained in:
IgorKha 2024-01-12 00:12:44 +05:00
parent ae47f414be
commit 99c9ee529a

View file

@ -44,7 +44,7 @@ function checkOS() {
function installWireGuard() {
#? Check root user
if [ "${EUID}" -ne 0 ]; then
if [[ "${EUID}" -ne 0 ]] && [[ "${OS}" != "macos" ]]; then
echo ""
echo "You need to run this script as root"
echo ""