Skip to content

Commit

Permalink
home-manager: remove the export of run
Browse files Browse the repository at this point in the history
Fixes #4950
  • Loading branch information
rycee committed Jan 28, 2024
1 parent ebba24a commit 4d54c29
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 0 additions & 4 deletions lib/bash/home-manager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -118,4 +115,3 @@ function run() {
"$@"
fi
}
export -f run
7 changes: 6 additions & 1 deletion modules/systemd-activate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4d54c29

Please sign in to comment.