mirror of
https://github.com/IgorKha/wireguard-mikrotik.git
synced 2025-08-04 02:04:27 +02:00
Fix root user check for non-macOS systems
This commit is contained in:
parent
ae47f414be
commit
99c9ee529a
1 changed files with 1 additions and 1 deletions
|
@ -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 ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue