Skip to content

Commit

Permalink
Merge pull request #75 from covermymeds/fix-variables-to-replace
Browse files Browse the repository at this point in the history
Fix --variables_to_replace
  • Loading branch information
cjestel authored Apr 2, 2021
2 parents 5d59e43 + 7685b26 commit 04bab9f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 2021-03-31 Release 1.5.10
### Summary
Bug Fix

### Changes
- variables_to_replace did not pass through to sub calls when passed on cli

## 2020-06-25 Release 1.5.9
### Summary
Security Fix
Expand Down
2 changes: 1 addition & 1 deletion dbdeployer_release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=1.5.9
version=1.5.10
4 changes: 2 additions & 2 deletions functions/deployment_report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ deployment_report() {
do
if ! [ -z "${x}" ]
then
echo "${script_name} -f "${x}" -n "${db_destination_name}" ${run_as_cli} ${environment_flag} ${server_cli} ${port_cli} ${dbuser_cli} ${password_cli} ${skip_cli} ${dbtype_cli} ${confirm_cli}"
echo "${script_name} -f ${x} -n ${db_destination_name} -o '${variables_to_replace}' ${run_as_cli} ${environment_flag} ${server_cli} ${port_cli} ${dbuser_cli} ${password_cli} ${skip_cli} ${dbtype_cli} ${confirm_cli}"
let "pending_count++"
fi
done
Expand Down Expand Up @@ -81,7 +81,7 @@ deployment_report() {
if ! [ -z "${x}" ]
then
auto_deploy_file=`echo ${x} | awk -F '--dbdeployer-md5sum--' {'print $1'}`
echo "${script_name} -f "${auto_deploy_file}" -c -n "${db_destination_name}" ${run_as_cli} ${environment_flag} ${server_cli} ${port_cli} ${dbuser_cli} ${password_cli} ${skip_cli} ${dbtype_cli}"
echo "${script_name} -f ${auto_deploy_file} -c -n ${db_destination_name} -o '${variables_to_replace}' ${run_as_cli} ${environment_flag} ${server_cli} ${port_cli} ${dbuser_cli} ${password_cli} ${skip_cli} ${dbtype_cli}"
let "pending_count++"
fi
done
Expand Down
3 changes: 2 additions & 1 deletion functions/update_db_to_current.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ function update_db_to_current() {

#echo "report_var executes: ${script_name} ${run_as_cli} -D ${db_basedir} -r -d \"${_dbname}\" -n \"${_db_destination_name}\" ${environment_flag} ${server_cli} ${port_cli} ${dbuser_cli} ${password_cli} ${skip_cli} ${dbtype_cli} ${module_list_cli} ${confirm_cli} | grep \"${script_name} -f\""

report_var=`${script_name} ${run_as_cli} -D ${db_basedir} -r -d "${_dbname}" -n "${_db_destination_name}" ${environment_flag} ${server_cli} ${port_cli} ${dbuser_cli} ${password_cli} ${skip_cli} ${dbtype_cli} ${module_list_cli} ${confirm_cli} | grep "${script_name} -f"`
report_var=`${script_name} ${run_as_cli} -D ${db_basedir} -r -d "${_dbname}" -n "${_db_destination_name}" -o ${variables_to_replace} ${environment_flag} ${server_cli} ${port_cli} ${dbuser_cli} ${password_cli} ${skip_cli} ${dbtype_cli} ${module_list_cli} ${confirm_cli} | grep "${script_name} -f"`

local IFS=$'\n'
for j in `echo -e "${report_var}"`
do
Expand Down

0 comments on commit 04bab9f

Please sign in to comment.