mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
darwin-rebuild: add -H
to sudo for $systemConfig/activate
This commit is contained in:
parent
c286b23c7f
commit
ab817e5d0e
1 changed files with 1 additions and 1 deletions
|
@ -215,7 +215,7 @@ if [ "$action" = switch ] || [ "$action" = activate ] || [ "$action" = rollback
|
|||
"$systemConfig/activate-user"
|
||||
|
||||
if [ "$USER" != root ]; then
|
||||
sudo "$systemConfig/activate"
|
||||
sudo -H "$systemConfig/activate"
|
||||
else
|
||||
"$systemConfig/activate"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue