summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-12-04 16:54:23 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2018-12-04 16:54:23 +0100
commit169d1a37589a748d84701555e4f48f3177d40bfa (patch)
tree48520f2522e7ac9b14a93d95e4691918a4e7b121
parenta9a7da4e4f2e1666c2a97081c3b2d886b9eafab2 (diff)
downloaddeployment-169d1a37589a748d84701555e4f48f3177d40bfa.tar.gz
deployment-169d1a37589a748d84701555e4f48f3177d40bfa.tar.bz2
deployment-169d1a37589a748d84701555e4f48f3177d40bfa.zip
Constructing CMD string beforehand.
-rwxr-xr-xbuildbot/make_auditor_reports.sh11
1 files changed, 7 insertions, 4 deletions
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; \