mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-20 03:40:17 +00:00
Change exit code to non-zero when running without Sudo
This commit is contained in:
parent
5a81da9912
commit
9131f2754a
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ if [[ ! $EUID -eq 0 ]];then
|
||||||
export SUDO="sudo"
|
export SUDO="sudo"
|
||||||
else
|
else
|
||||||
echo "::: Please install sudo or run this as root."
|
echo "::: Please install sudo or run this as root."
|
||||||
exit 0
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue