From 13639df5cb692ebc79ba58ae7d5e6738ea2bc2b1 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Fri, 17 Jun 2016 22:56:34 +0200 Subject: removing backticks in switcher script --- taler-build/switch_active.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'taler-build') diff --git a/taler-build/switch_active.sh b/taler-build/switch_active.sh index bc64ed6..388d488 100755 --- a/taler-build/switch_active.sh +++ b/taler-build/switch_active.sh @@ -6,11 +6,13 @@ # The script is not portable to system using different usernames and directories, # respect to taler.net, for blue-green deployments +set -eu + # figure out which is the inactive -ACTIVE=`readlink /home/test/sockets | awk -F/ '{print $3}'` +ACTIVE=$(readlink /home/test/sockets | awk -F/ '{print $3}') # exit if active -if [[ `whoami` == $ACTIVE ]] +if [[ $(whoami) == $ACTIVE ]] then exit fi -- cgit v1.2.3