fix check for root user

This commit is contained in:
Matthew Saunders Brown 2022-10-17 10:09:09 -07:00
parent a5bd2cf369
commit 3aca5f7f96

View File

@ -6,7 +6,7 @@
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#
# must be root
if [ "$USER" != "root" ]; then
if [ "${EUID}" -ne 0 ]; then
echo "You must be root to run this installer."
exit
fi