summaryrefslogtreecommitdiff
path: root/buildbot/build.sh
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2019-04-19 19:01:09 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2019-04-19 19:01:09 +0200
commit92a9466dc83dc9a730bf9be7bdcb2b713c69987e (patch)
tree5ab45983134d57d7dfc277e905f7e17a056133a1 /buildbot/build.sh
parent27044c97b8d7e452c1a14babf1bb725448682961 (diff)
downloaddeployment-92a9466dc83dc9a730bf9be7bdcb2b713c69987e.tar.gz
deployment-92a9466dc83dc9a730bf9be7bdcb2b713c69987e.tar.bz2
deployment-92a9466dc83dc9a730bf9be7bdcb2b713c69987e.zip
whoami instead of env.
Diffstat (limited to 'buildbot/build.sh')
-rwxr-xr-xbuildbot/build.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/buildbot/build.sh b/buildbot/build.sh
index 33f764c..4e5f22c 100755
--- a/buildbot/build.sh
+++ b/buildbot/build.sh
@@ -1,9 +1,6 @@
#!/bin/bash
-source "${HOME}/activate"
-ACTIVE_COLOR="$(cat /home/test/active)"
-
-if test "${TALER_ENV_COLOR}" = "${ACTIVE_COLOR}"; then
+if test "$(whoami)" = "$(cat /home/test/active)"; then
echo "I'm the active color, no need to compile and switch!"
exit 0
fi
@@ -17,4 +14,5 @@ echo "The Buildbot is paused, remove ${PAUSE_LOCKFILE} to resume."
exit 2
fi
+source "${HOME}/activate"
taler-deployment-build