Require sudo password verification and provide specific instructions for SteamOS users

This commit is contained in:
2026-06-22 20:58:31 +02:00
parent dd333d106b
commit 5a81190f76

6
run.sh
View File

@@ -36,6 +36,12 @@ as_root() {
echo "Installing native build dependencies requires root access, but sudo is unavailable." >&2
exit 1
fi
if ! sudo -v; then
if is_steamos; then
echo "SteamOS needs a local user password for sudo. Run 'passwd', then rerun ./run.sh." >&2
fi
exit 1
fi
sudo "$@"
}