nixos-rebuild: ignore SUDO_USER

This commit is contained in:
Max 2024-08-02 12:54:35 +02:00
parent 9307b49d29
commit 89ec1b315a

View File

@ -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