mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01:00
parent
ebba24a6fe
commit
4d54c29bce
2 changed files with 6 additions and 5 deletions
|
@ -101,9 +101,6 @@ function _iVerbose() {
|
||||||
#
|
#
|
||||||
# If given the command line option `--silence`, then the command's standard and
|
# If given the command line option `--silence`, then the command's standard and
|
||||||
# error output is sent to `/dev/null` on a live run.
|
# 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() {
|
function run() {
|
||||||
if [[ $1 == '--silence' ]]; then
|
if [[ $1 == '--silence' ]]; then
|
||||||
local silence=1
|
local silence=1
|
||||||
|
@ -118,4 +115,3 @@ function run() {
|
||||||
"$@"
|
"$@"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
export -f run
|
|
||||||
|
|
|
@ -110,5 +110,10 @@ function systemdPostReload() {
|
||||||
oldGenPath="$1"
|
oldGenPath="$1"
|
||||||
newGenPath="$2"
|
newGenPath="$2"
|
||||||
|
|
||||||
run systemctl --user daemon-reload
|
if [[ -v DRY_RUN ]]; then
|
||||||
|
echo systemctl --user daemon-reload
|
||||||
|
else
|
||||||
|
systemctl --user daemon-reload
|
||||||
|
fi
|
||||||
|
|
||||||
systemdPostReload
|
systemdPostReload
|
||||||
|
|
Loading…
Reference in a new issue