mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-15 21:08:21 +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"
|
"$systemConfig/activate-user"
|
||||||
|
|
||||||
if [ "$USER" != root ]; then
|
if [ "$USER" != root ]; then
|
||||||
sudo -H --preserve-env=PATH env "$systemConfig/activate"
|
sudo -H --preserve-env=PATH "$systemConfig/activate"
|
||||||
else
|
else
|
||||||
"$systemConfig/activate"
|
"$systemConfig/activate"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue