diff options
Diffstat (limited to 'templates/awk/init')
-rwxr-xr-x | templates/awk/init | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/awk/init b/templates/awk/init index df0b4c5..e7414d6 100755 --- a/templates/awk/init +++ b/templates/awk/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" |