chore: Prevent user setup from running for sddm under any circumstance.

This commit is contained in:
Kyle Gospodnetich 2024-05-07 13:15:55 -07:00
parent 420f934b72
commit f94ce7bd3e

View File

@ -3,6 +3,9 @@
if [ "${EUID:-$(id -u)}" -eq 0 ]; then
echo "Bazzite user setup ran as root user. Exiting."
exit 0
elif [ "$(whoami)" = "sddm" ]; then
echo "Bazzite user setup ran as sddm user. Exiting."
exit 0
fi
IMAGE_INFO="/usr/share/ublue-os/image-info.json"