X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Flicense-check.sh;h=31290c3acfeac928cdce8e838917c18e5d5d7eff;hb=7c8c0136203f61317e6904030f86dfbd5a6c402e;hp=8466cf9941ae123e5de4687a175a3908dd9babbb;hpb=41c32874d920b94e23fc36c1432a5950ee34cd82;p=releng%2Fglobal-jjb.git diff --git a/shell/license-check.sh b/shell/license-check.sh index 8466cf99..31290c3a 100644 --- a/shell/license-check.sh +++ b/shell/license-check.sh @@ -45,7 +45,11 @@ if hash lhc 2>/dev/null; then 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" @@ -56,7 +60,7 @@ fi set -f # Disable globbing for $file_patterns to pass '*' # Purposely disable SC2068 for $file_patterns # shellcheck disable=SC2068 -lhc --license "$licenses_allowed" ${disable_spdx} \ +lhc --license "$licenses_allowed" "${disable_spdx}" \ --exclude "$license_exclude_paths" \ ${file_patterns[@]} set +f