From 92a9466dc83dc9a730bf9be7bdcb2b713c69987e Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Fri, 19 Apr 2019 19:01:09 +0200 Subject: whoami instead of env. --- buildbot/restart.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'buildbot/restart.sh') diff --git a/buildbot/restart.sh b/buildbot/restart.sh index a57a2f3..6faa6a2 100755 --- a/buildbot/restart.sh +++ b/buildbot/restart.sh @@ -1,11 +1,9 @@ #!/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 +source "${HOME}/activate" taler-deployment-restart -- cgit v1.2.3