mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
launchd: fix activation diff
This commit is contained in:
parent
c7d92b852e
commit
a2843f8192
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ let
|
|||
};
|
||||
|
||||
launchdActivation = basedir: target: ''
|
||||
if ! diff '/run/current-system/Library/${basedir}/${target}' '/Library/${basedir}/${target}'; then
|
||||
if ! diff '${cfg.build.launchd}/Library/${basedir}/${target}' '/Library/${basedir}/${target}'; then
|
||||
if test -f '/Library/${basedir}/${target}'; then
|
||||
launchctl unload -w '/Library/${basedir}/${target}' || true
|
||||
fi
|
||||
|
@ -24,7 +24,7 @@ let
|
|||
'';
|
||||
|
||||
userLaunchdActivation = target: ''
|
||||
if ! diff '/run/current-system/${home}/Library/LaunchAgents/${target}' '${home}/Library/LaunchAgents/${target}'; then
|
||||
if ! diff '${cfg.build.launchd}/${home}/Library/LaunchAgents/${target}' '${home}/Library/LaunchAgents/${target}'; then
|
||||
if test -f '${home}/Library/LaunchAgents/${target}'; then
|
||||
launchctl unload -w '${home}/Library/LaunchAgents/${target}' || true
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue