mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
launchd: fix undefined variable in activation script (#2763)
This commit is contained in:
parent
c7a13f76a7
commit
ccd00e3c93
1 changed files with 2 additions and 0 deletions
|
@ -96,6 +96,7 @@ in {
|
||||||
checkLaunchAgents() {
|
checkLaunchAgents() {
|
||||||
local oldDir newDir dstDir err
|
local oldDir newDir dstDir err
|
||||||
oldDir=""
|
oldDir=""
|
||||||
|
err=0
|
||||||
if [[ -n "''${oldGenPath:-}" ]]; then
|
if [[ -n "''${oldGenPath:-}" ]]; then
|
||||||
oldDir="$(readlink -m "$oldGenPath/LaunchAgents")" || err=$?
|
oldDir="$(readlink -m "$oldGenPath/LaunchAgents")" || err=$?
|
||||||
if (( err )); then
|
if (( err )); then
|
||||||
|
@ -135,6 +136,7 @@ in {
|
||||||
setupLaunchAgents() {
|
setupLaunchAgents() {
|
||||||
local oldDir newDir dstDir domain err
|
local oldDir newDir dstDir domain err
|
||||||
oldDir=""
|
oldDir=""
|
||||||
|
err=0
|
||||||
if [[ -n "''${oldGenPath:-}" ]]; then
|
if [[ -n "''${oldGenPath:-}" ]]; then
|
||||||
oldDir="$(readlink -m "$oldGenPath/LaunchAgents")" || err=$?
|
oldDir="$(readlink -m "$oldGenPath/LaunchAgents")" || err=$?
|
||||||
if (( err )); then
|
if (( err )); then
|
||||||
|
|
Loading…
Reference in a new issue