From 169d1a37589a748d84701555e4f48f3177d40bfa Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Tue, 4 Dec 2018 16:54:23 +0100 Subject: Constructing CMD string beforehand. --- buildbot/make_auditor_reports.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'buildbot') diff --git a/buildbot/make_auditor_reports.sh b/buildbot/make_auditor_reports.sh index 4977e62..06ab3bb 100755 --- 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; \ -- cgit v1.2.3