From 89ec1b315ac98577a0086d99854de91c6eba3182 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 2 Aug 2024 12:54:35 +0200 Subject: [PATCH] nixos-rebuild: ignore SUDO_USER --- pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh b/pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh index 03b2dbfbeb66..57a647e0fa58 100755 --- a/pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh +++ b/pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh @@ -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