mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
launchd: fix undefined variable in activation script (#2763)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user