Skip to content

Commit

Permalink
Change variable name if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelfdez99 committed Jul 4, 2022
1 parent 855b533 commit 2f32afd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions unattended_installer/builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ function buildInstaller() {
configuration_files=($(find "${resources_config}" -type f))
config_file_name=($(eval "echo "${configuration_files[@]}" | sed 's|${resources_config}||g;s|/|_|g;s|.yml||g'"))
for index in "${!config_file_name[@]}"; do
config_file_name[$index]=$(echo "${config_file_name[$index]}" | sed 's|-|_|g')
echo "config_file${config_file_name[$index]}=\"$(cat "${configuration_files[$index]}" | sed 's|\"|\\\"|g;s|\$|\\\$|g')\"" >> "${output_script_path}"
echo >> "${output_script_path}"
done
Expand Down

0 comments on commit 2f32afd

Please sign in to comment.