mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
Update pkgs/nix-tools/darwin-rebuild.sh
Co-authored-by: Michael Hoang <Enzime@users.noreply.github.com>
This commit is contained in:
parent
26a59d504b
commit
a4b4cf70dc
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 -H --preserve-env=PATH env "$systemConfig/activate"
|
||||
sudo -H --preserve-env=PATH "$systemConfig/activate"
|
||||
else
|
||||
"$systemConfig/activate"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue