From ccd00e3c93b89b26ca86749cfe64b371e2dd7910 Mon Sep 17 00:00:00 2001 From: midchildan Date: Sun, 27 Feb 2022 05:06:12 +0900 Subject: [PATCH] launchd: fix undefined variable in activation script (#2763) --- modules/launchd/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/launchd/default.nix b/modules/launchd/default.nix index 375231d09..5d4bbfe75 100644 --- a/modules/launchd/default.nix +++ b/modules/launchd/default.nix @@ -96,6 +96,7 @@ in { checkLaunchAgents() { local oldDir newDir dstDir err oldDir="" + err=0 if [[ -n "''${oldGenPath:-}" ]]; then oldDir="$(readlink -m "$oldGenPath/LaunchAgents")" || err=$? if (( err )); then @@ -135,6 +136,7 @@ in { setupLaunchAgents() { local oldDir newDir dstDir domain err oldDir="" + err=0 if [[ -n "''${oldGenPath:-}" ]]; then oldDir="$(readlink -m "$oldGenPath/LaunchAgents")" || err=$? if (( err )); then