Skip to content

Commit

Permalink
Merge pull request #331741 from max-privatevoid/pr-nixos-rebuild-no-s…
Browse files Browse the repository at this point in the history
…udo-user

nixos-rebuild: ignore SUDO_USER
  • Loading branch information
emilazy authored Aug 12, 2024
2 parents 88beb3d + 89ec1b3 commit 4e7d996
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,6 @@ while [ "$#" -gt 0 ]; do
esac
done

if [[ -n "$SUDO_USER" ]]; then
useSudo=1
fi

# log the given argument to stderr if verbose mode is on
logVerbose() {
if [ -n "$verboseScript" ]; then
Expand Down

0 comments on commit 4e7d996

Please sign in to comment.