commit 95b5a8b022c32504c02a46002e5c6db59abea9d8 parent 8315f67f825f47c882bc1aa40e23f1e48d9d1290 Author: Marcello Stanisci <stanisci.m@gmail.com> Date: Tue, 4 Jun 2019 14:09:00 +0200 debug Diffstat:
| M | buildbot/build.sh | | | 7 | ++++++- |
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git 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