diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-04-01 12:53:46 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-04-01 12:53:46 +0200 |
commit | cd5928333bc289d51a7a200ebcfeb1d23d0af07f (patch) | |
tree | 2c5f212766aa09b94903eaecd86a9722bbd3e74e | |
parent | feat(common/.licensure.yml): Also add support for different licenses for text (diff) | |
download | flake-templates-cd5928333bc289d51a7a200ebcfeb1d23d0af07f.tar.gz flake-templates-cd5928333bc289d51a7a200ebcfeb1d23d0af07f.zip |
docs(update_common_files): Improve terminal output
Diffstat (limited to '')
-rwxr-xr-x | update_common_files.sh | 4 |
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 |