diff options
Diffstat (limited to 'buildbot/build.sh')
-rwxr-xr-x | buildbot/build.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/buildbot/build.sh b/buildbot/build.sh index 382c2fc..f3f891a 100755 --- a/buildbot/build.sh +++ b/buildbot/build.sh @@ -1,6 +1,11 @@ #!/bin/bash -if test "$(whoami)" = "$(cat /home/test/active)"; then +WHOAMI="$(whoami)" +ACTIVE_COLOR="$(cat /home/test/active)" + +echo "whoami: $WHOAMI, active color: $ACTIVE_COLOR" + +if test $WHOAMI = $ACTIVE_COLOR; then echo "I'm the active color, no need to compile and switch!" exit 0 fi |