mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:50:44 +08:00
launchd: Restore errexit after setting up launchd agents
At the beginning of the setup script `errexit` is disabled, but never properly enabled again at the end. This causes potential issues/errors in activation scripts following `setupLaunchAgents` to go unnoticed, since the build doesn't actually fail.
This commit is contained in:
committed by
Robert Helgesson
parent
12cc14271b
commit
8f7d6bacb6
@@ -270,9 +270,7 @@ in
|
||||
setupLaunchAgents
|
||||
|
||||
# Restore errexit
|
||||
if [[ -o errexit ]]; then
|
||||
set -e
|
||||
fi
|
||||
set -e
|
||||
'';
|
||||
})
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user