Merge pull request #331741 from max-privatevoid/pr-nixos-rebuild-no-sudo-user

nixos-rebuild: ignore SUDO_USER
This commit is contained in:
Emily 2024-08-12 01:10:21 +01:00 committed by GitHub
commit 4e7d996aa8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -181,10 +181,6 @@ while [ "$#" -gt 0 ]; do
esac esac
done done
if [[ -n "$SUDO_USER" ]]; then
useSudo=1
fi
# log the given argument to stderr if verbose mode is on # log the given argument to stderr if verbose mode is on
logVerbose() { logVerbose() {
if [ -n "$verboseScript" ]; then if [ -n "$verboseScript" ]; then