mirror of
https://github.com/IgorKha/wireguard-mikrotik.git
synced 2025-08-28 05:54:52 +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() {
|
function installWireGuard() {
|
||||||
|
|
||||||
#? Check root user
|
#? Check root user
|
||||||
if [ "${EUID}" -ne 0 ]; then
|
if [[ "${EUID}" -ne 0 ]] && [[ "${OS}" != "macos" ]]; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "You need to run this script as root"
|
echo "You need to run this script as root"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue