From 492598352aa58d3aace7f944ef8e7a8a2e82c8a2 Mon Sep 17 00:00:00 2001 From: Jeremy Phelps Date: Mon, 14 May 2018 17:09:55 -0500 Subject: [PATCH] Prevent unbound variable error on create-netrc.sh Change-Id: I15498ccf8a16fb93d307408f515751ea98c0003b Signed-off-by: Jeremy Phelps --- 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 b309c54b..81ac647e 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}" +ALT_NEXUS_URL="${ALT_NEXUS_URL:-None}" -if [ -z "$ALT_NEXUS_URL" ] +if [[ -z "$ALT_NEXUS_URL" || "$ALT_NEXUS_URL" == "None" ]] then NEXUS_URL="${NEXUSPROXY:-$NEXUS_URL}" else -- 2.16.6