about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--common/init5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/init b/common/init
index 8d8a2d0..d2eb028 100644
--- a/common/init
+++ b/common/init
@@ -172,8 +172,9 @@ rm --recursive ./git_template
 
 while read -r var; do
     var_name="${var%=*}"
-    var_value="${var#*=\"}"
-    var_value="${var_value%\"}"
+    var_value="${var#*=}"
+    # The `eval` _should_ be safe, as all values are quoted correctly.
+    var_value="$(eval echo "$var_value")"
 
     fd . --hidden --type file --exec sed --in-place "s|%\bINIT_$var_name\b|$var_value|g"