From 7a1a1bdacd238191b310f245f164da0b45dcbd97 Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Thu, 31 May 2018 11:47:20 -0400 Subject: [PATCH] Simplify conditional statement for ALT_NEXUS_REPO Change-Id: I72cecef2c52e1c1e2688437a18dfa02bc1b4c3e6 Signed-off-by: Thanh Ha --- shell/create-netrc.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/create-netrc.sh b/shell/create-netrc.sh index 81ac647e..52f239d3 100644 --- a/shell/create-netrc.sh +++ b/shell/create-netrc.sh @@ -13,9 +13,9 @@ echo "---> create-netrc.sh" # Ensure we fail the job if any steps fail. set -eu -o pipefail -ALT_NEXUS_URL="${ALT_NEXUS_URL:-None}" +ALT_NEXUS_URL="${ALT_NEXUS_URL:-}" -if [[ -z "$ALT_NEXUS_URL" || "$ALT_NEXUS_URL" == "None" ]] +if [ -z "$ALT_NEXUS_URL" ] then NEXUS_URL="${NEXUSPROXY:-$NEXUS_URL}" else -- 2.16.6