mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-01 03:21:41 +00:00
chore: Harden root check
This commit is contained in:
parent
ab2ba7a4d2
commit
66e9fdf43f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user