From: Thanh Ha Date: Thu, 31 May 2018 15:47:20 +0000 (-0400) Subject: Simplify conditional statement for ALT_NEXUS_REPO X-Git-Tag: v0.20.0~2^2 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F06%2F10906%2F1;p=releng%2Fglobal-jjb.git Simplify conditional statement for ALT_NEXUS_REPO Change-Id: I72cecef2c52e1c1e2688437a18dfa02bc1b4c3e6 Signed-off-by: Thanh Ha --- 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