launchd: fix undefined variable in activation script (#2763)

main
midchildan 2 years ago committed by GitHub
parent c7a13f76a7
commit ccd00e3c93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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

Loading…
Cancel
Save