Skip to content

Commit 58d95c3

Browse files
committed
separate variable declaration from definition
1 parent 9be886b commit 58d95c3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

modules/bash-commons/src/file.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,11 @@ function file_fill_template {
7676
return
7777
fi
7878

79+
local name
80+
local value
7981
for param in "${auto_fill[@]}"; do
80-
local -r name="$(string_strip_suffix "$param" "=*")"
81-
local -r value="$(string_strip_prefix "$param" "*=")"
82+
name="$(string_strip_suffix "$param" "=*")"
83+
value="$(string_strip_prefix "$param" "*=")"
8284
file_replace_text "$name" "$value" "$file"
8385
done
8486
}

0 commit comments

Comments
 (0)