Require sudo password verification and provide specific instructions for SteamOS users
This commit is contained in:
6
run.sh
6
run.sh
@@ -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 "$@"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user