mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
Merge pull request #331741 from max-privatevoid/pr-nixos-rebuild-no-sudo-user
nixos-rebuild: ignore SUDO_USER
This commit is contained in:
commit
4e7d996aa8
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user