From cd5928333bc289d51a7a200ebcfeb1d23d0af07f Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Mon, 1 Apr 2024 12:53:46 +0200 Subject: docs(update_common_files): Improve terminal output --- update_common_files.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'update_common_files.sh') diff --git a/update_common_files.sh b/update_common_files.sh index f342850..9015cc6 100755 --- a/update_common_files.sh +++ b/update_common_files.sh @@ -6,14 +6,14 @@ ROOT="$(git rev-parse --show-toplevel)"; cd "$ROOT/common" || echo "BUG, no root dir!" fd . "." --type file --hidden | while read -r file; do + [ -n "$first_run_done" ] && echo echo "Instantiating '$file'..." fd . "../templates" --type directory --max-depth 1 | while read -r template; do echo " done in '$template'." - echo " " cp "$file" "$template$file" rm "$template$file" cp "$file" "$template$file" done + first_run_done=yes done - # vim: ft=sh -- cgit 1.4.1