about summary refs log tree commit diff stats
path: root/update_common_files.sh
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-04-01 12:53:46 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-04-01 12:53:46 +0200
commitcd5928333bc289d51a7a200ebcfeb1d23d0af07f (patch)
tree2c5f212766aa09b94903eaecd86a9722bbd3e74e /update_common_files.sh
parentfeat(common/.licensure.yml): Also add support for different licenses for text (diff)
downloadflake-templates-cd5928333bc289d51a7a200ebcfeb1d23d0af07f.tar.gz
flake-templates-cd5928333bc289d51a7a200ebcfeb1d23d0af07f.zip
docs(update_common_files): Improve terminal output
Diffstat (limited to '')
-rwxr-xr-xupdate_common_files.sh4
1 files changed, 2 insertions, 2 deletions
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