1
0
Fork 0
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:
Roman Novak 2023-11-09 18:09:45 +01:00 committed by GitHub
parent 26a59d504b
commit a4b4cf70dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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