1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-09-21 05:47:29 +02:00

home-manager: remove the export of run

Fixes #4950
This commit is contained in:
Robert Helgesson 2024-01-28 10:47:33 +01:00 committed by Mikilio
parent bbe8322566
commit 910d316355
No known key found for this signature in database
GPG key ID: 5B2F1A890CF33F3F
2 changed files with 6 additions and 5 deletions

View file

@ -101,9 +101,6 @@ function _iVerbose() {
#
# If given the command line option `--silence`, then the command's standard and
# error output is sent to `/dev/null` on a live run.
#
# Note, the run function is exported. I.e., it is available also to called Bash
# script.
function run() {
if [[ $1 == '--silence' ]]; then
local silence=1
@ -118,4 +115,3 @@ function run() {
"$@"
fi
}
export -f run

View file

@ -110,5 +110,10 @@ function systemdPostReload() {
oldGenPath="$1"
newGenPath="$2"
run systemctl --user daemon-reload
if [[ -v DRY_RUN ]]; then
echo systemctl --user daemon-reload
else
systemctl --user daemon-reload
fi
systemdPostReload