From 0c55b948f0d306ee19cdb164df09b7186c545348 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Tue, 10 Jan 2023 08:54:12 +0000 Subject: [PATCH] Update file run_onchange_after_5-log-config.tmpl --- .../universal/run_onchange_after_5-log-config.tmpl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/home/.chezmoiscripts/universal/run_onchange_after_5-log-config.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_5-log-config.tmpl index b4908d90..5958bbe5 100644 --- a/home/.chezmoiscripts/universal/run_onchange_after_5-log-config.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_after_5-log-config.tmpl @@ -1,6 +1,11 @@ #!/usr/bin/env bash -# home directories: {{ output ("ls" "-1" .host.homeParentFolder) }} +{{ $homeDirs := (output "find" .host.homeParentFolder "-mindepth" "1" "-maxdepth" "1" "-type" "d") -}} +{{- range $homeDir := splitList "\n" $homeDirs -}} +{{- if ne $homeDir "" -}} +# home dir: {{ $homeDir }} +{{ end -}} +{{- end }} {{ includeTemplate "universal/profile" }} {{ includeTemplate "universal/logg" }}