commit 313f1b565a3a5ffabe87f61fd5ea69a962ac065d
parent 54be11b47733d845607a9075349a2f5e18149d5c
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date: Wed, 1 Jun 2016 02:55:46 +0200
exit if switcher invoked by active party
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/taler-build/switch_active.sh b/taler-build/switch_active.sh
@@ -8,6 +8,13 @@
# figure out which is the inactive
ACTIVE=`readlink /home/test/sockets | awk -F/ '{print $3}'`
+
+# exit if active
+if [[ `whoami` == $ACTIVE ]]
+then
+exit
+fi
+
if [[ 'test-green' == $ACTIVE ]]
then
INACTIVE='test-blue'