taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit 169d1a37589a748d84701555e4f48f3177d40bfa
parent a9a7da4e4f2e1666c2a97081c3b2d886b9eafab2
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Tue,  4 Dec 2018 16:54:23 +0100

Constructing CMD string beforehand.

Diffstat:
Mbuildbot/make_auditor_reports.sh | 11+++++++----
1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/buildbot/make_auditor_reports.sh b/buildbot/make_auditor_reports.sh @@ -27,11 +27,14 @@ SUDO_COLOR="sudo -u ${ACTIVE_COLOR}" JINJA_TEMPLATE="auditor-report.tex.j2" REPORTS_DIRECTORY="/home/${TALER_DEPLOYMENT}/reports" -${SUDO_COLOR} bash -c \ - "source /home/${ACTIVE_COLOR}/activate;" \ - 'echo $PATH;' \ +CMD=$(printf "%s; %s; %s" \ + "source /home/${ACTIVE_COLOR}/activate" \ + 'echo $PATH' \ 'taler-auditor-exchange -m $(taler-config -s exchange -o master_public_key) \ - -u $(taler-config -s exchange -o base_url)' + -u $(taler-config -s exchange -o base_url)') +echo $CMD + +${SUDO_COLOR} bash -c $CMD ${SUDO_COLOR} bash -c \ "source /home/${ACTIVE_COLOR}/activate; \