else
echo "License Header Checker is not installed. Installing..."
mkdir "$WORKSPACE/bin"
- wget -nv -O "/tmp/lhc.tar.gz" "https://nexus.opendaylight.org/content/repositories/hosted_installers/org/linuxfoundation/lhc/${lhc_version}/lhc-${lhc_version}.tar.gz"
+ NEXUS_BASEURL="https://nexus.opendaylight.org/"
+ NEXUS_PATH="content/repositories/hosted_installers/org/linuxfoundation/"
+ NEXUS_LHC="lhc/${lhc_version}/lhc-${lhc_version}.tar.gz"
+ NEXUS_URL="${NEXUS_BASEURL}${NEXUS_PATH}${NEXUS_LHC}"
+ wget -nv -O "/tmp/lhc.tar.gz" "$NEXUS_URL"
tar -zxvf /tmp/lhc.tar.gz -C "$WORKSPACE/bin"
chmod +x "$WORKSPACE/bin/lhc"
export PATH="$WORKSPACE/bin:$PATH"