about summary refs log tree commit diff stats
path: root/common/files
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xcommon/files/init6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/files/init b/common/files/init
index 4f108ef..8e3479f 100755
--- a/common/files/init
+++ b/common/files/init
@@ -79,6 +79,12 @@ while read -r var; do
     var_value="${var_value%\"}"
 
     fd . --hidden --type file --exec sed --in-place "s|%\bINIT_$var_name\b|$var_value|"
+
+    # 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|")";
+        mv "$file_path" "$new_file_path"
+    done
 done < "$replacement_file"
 
 # HACK: Re-add the executable permissions to files, which the nix template has somehow