Commit ab7d42b6 authored by Visay Keo's avatar Visay Keo

[BUGFIX] Use eval to execute shell from string

With the previus commit, the ansible parameters are used in string
variable which cause the script to stop executing. Use eval force to the
string to run the command.
parent e17c2165
...@@ -4,7 +4,8 @@ CHANGELOG ...@@ -4,7 +4,8 @@ CHANGELOG
3.0-dev 3.0-dev
--------- ---------
- [IMP] Group ansible params into variable - [BUGFIX] Use eval to execute shell from string
- [IMP] Group ansible params into variable
3.0.0 3.0.0
----- -----
......
...@@ -188,7 +188,7 @@ echo -e ${GREEN}"#############################" ...@@ -188,7 +188,7 @@ echo -e ${GREEN}"#############################"
echo "### STARTING CONTENT SYNC ###" echo "### STARTING CONTENT SYNC ###"
echo -e "#############################"${NC} echo -e "#############################"${NC}
ansible-playbook ${ANSIBLE_PARAMS} --extra-vars "${ANSIBLE_EXTRA_VARS}" || ERROR="1" eval "ansible-playbook ${ANSIBLE_PARAMS} --extra-vars \"${ANSIBLE_EXTRA_VARS}\"" || ERROR="1"
if [[ -n "${ERROR}" ]]; then if [[ -n "${ERROR}" ]]; then
echo echo
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment