about summary refs log tree commit diff stats
path: root/templates/latex/init
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-04-02 14:46:44 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-04-02 14:46:44 +0200
commit62608badf7230afa5e4ebe72da5cb2522bfb33a4 (patch)
tree0031a7058e53c34dfd764d4c1615463d8e3ddf63 /templates/latex/init
parentfix(templates/latex/flake.nix): Keep the PDF file extensions when building (diff)
downloadflake-templates-62608badf7230afa5e4ebe72da5cb2522bfb33a4.tar.gz
flake-templates-62608badf7230afa5e4ebe72da5cb2522bfb33a4.zip
chore(version): v0.6.1
Diffstat (limited to 'templates/latex/init')
-rwxr-xr-xtemplates/latex/init4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/latex/init b/templates/latex/init
index df0b4c5..e7414d6 100755
--- a/templates/latex/init
+++ b/templates/latex/init
@@ -78,11 +78,11 @@ while read -r var; do
     var_value="${var#*=\"}"
     var_value="${var_value%\"}"
 
-    fd . --hidden --type file --exec sed --in-place "s|%\bINIT_$var_name\b|$var_value|"
+    fd . --hidden --type file --exec sed --in-place "s|%\bINIT_$var_name\b|$var_value|g"
 
     # Replace the variable in file paths
     fd "%INIT_$var_name" . --hidden | while read -r file_path; do
-        new_file_path="$(echo "$file_path" | sed "s|%INIT_$var_name|$var_value|")";
+        new_file_path="$(echo "$file_path" | sed "s|%INIT_$var_name|$var_value|g")";
         mv "$file_path" "$new_file_path"
     done
 done < "$replacement_file"