File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -255,15 +255,15 @@ function main {
255
255
local file=" $1 "
256
256
local text=" $2 "
257
257
258
- sed -i " s#/tmp/$text /\(.*\)#/tmp/\1#g" " $file "
258
+ sudo_if_available sed -i " s#/tmp/$text /\(.*\)#/tmp/\1#g" " $file "
259
259
}
260
260
261
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
- find " $folder " -type f -print0 | while IFS= read -r -d ' ' file; do
266
+ sudo_if_available find " $folder " -type f -print0 | while IFS= read -r -d ' ' file; do
267
267
normalise_file_text " $file " " $text "
268
268
done
269
269
}
@@ -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
- sudo_if_available normalise_files_in_folder " $target_dir " " 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
- sudo_if_available normalise_files_in_folder " $source_dir " " 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 &
You can’t perform that action at this time.
0 commit comments