chore: Harden root check

This commit is contained in:
Kyle Gospodnetich 2024-04-15 12:11:25 -07:00
parent ab2ba7a4d2
commit 66e9fdf43f

View File

@ -1,6 +1,6 @@
#!/usr/bin/bash
if [ "$EUID" == 0 ]; then
if [ "${EUID:-$(id -u)}" -eq 0 ]; then
echo "Bazzite user setup ran as root user. Exiting."
exit 0
fi