Simplify conditional statement for ALT_NEXUS_REPO 06/10906/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 31 May 2018 15:47:20 +0000 (11:47 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 31 May 2018 15:47:22 +0000 (11:47 -0400)
Change-Id: I72cecef2c52e1c1e2688437a18dfa02bc1b4c3e6
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
shell/create-netrc.sh

index 81ac647..52f239d 100644 (file)
@@ -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