@@ -251,20 +251,20 @@ function main {
251
251
clean_copy " $KAYOBE_CONFIG_SOURCE_PATH " " $source_kayobe_config_dir "
252
252
clean_copy " $KAYOBE_CONFIG_SOURCE_PATH " " $target_kayobe_config_dir "
253
253
254
- function normalize_file_text () {
254
+ function normalise_file_text () {
255
255
local file=" $1 "
256
256
local text=" $2 "
257
257
258
258
sed -i " s#/tmp/$text /\(.*\)#/tmp/\1#g" " $file "
259
259
}
260
260
261
- function normalize_files_in_folder () {
261
+ function normalise_files_in_folder () {
262
262
local folder=" $1 "
263
263
local text=" $2 "
264
264
265
265
# Find all files in the folder and its subfolders and loop through them
266
266
find " $folder " -type f -print0 | while IFS= read -r -d ' ' file; do
267
- normalize_file_text " $file " " $text "
267
+ normalise_file_text " $file " " $text "
268
268
done
269
269
}
270
270
@@ -278,7 +278,7 @@ function main {
278
278
redact_config_dir " $target_environment_path "
279
279
encrypt_config_dir " $target_environment_path "
280
280
generate_config " $target_environment_path " " $target_dir "
281
- normalize_files_in_folder " $target_environment_path " " target-kayobe-env"
281
+ normalise_files_in_folder " $target_dir " " target-kayobe-env"
282
282
}
283
283
284
284
function generate_source_config {
@@ -293,7 +293,7 @@ function main {
293
293
redact_config_dir " $source_environment_path " " $target_kayobe_config_dir "
294
294
encrypt_config_dir " $source_environment_path "
295
295
generate_config " $source_environment_path " " $source_dir "
296
- normalize_files_in_folder " $source_environment_path " " source-kayobe-env"
296
+ normalise_files_in_folder " $source_dir " " source-kayobe-env"
297
297
}
298
298
299
299
generate_target_config $1 > /dev/null 2>&1 &
0 commit comments