diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-04-02 14:26:11 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-04-02 14:26:11 +0200 |
commit | aabba688f54323f1cd4451ec068598152b67d9e0 (patch) | |
tree | b733baef48cd1b3bee997f73b6d5d181f4da1e84 /update_common_files.sh | |
parent | chore(common/treefmt.nix): Ignore the pre-generation markdown file (diff) | |
download | flake-templates-aabba688f54323f1cd4451ec068598152b67d9e0.tar.gz flake-templates-aabba688f54323f1cd4451ec068598152b67d9e0.zip |
chore(templates): Update common files
Diffstat (limited to 'update_common_files.sh')
-rwxr-xr-x[-rw-r--r--] | update_common_files.sh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/update_common_files.sh b/update_common_files.sh index 6e3c145..d204c17 100644..100755 --- a/update_common_files.sh +++ b/update_common_files.sh @@ -12,15 +12,14 @@ echo "$file_spec" | jq --raw-output 'keys | join("\n")' | while read -r file; do echo "Instantiating '$file'..." echo "$file_spec" | jq --raw-output ".[\"$file\"] | join(\"\n\")" | while read -r language; do - template="$ROOT/templates/$language"; + template="$ROOT/templates/$language" echo " done for '$language'." - mkdir --parents "$(dirname "$template/$file")" - rm "$template/$file" - cp "$file" "$template/$file" + mkdir --parents "$(dirname "$template/$file")" + rm "$template/$file" + cp "$file" "$template/$file" done - first_run_done=yes done |