From b4de741f14f653e1e30cccc413f655c32b14e105 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 19 Dec 2024 19:32:31 +1300 Subject: [PATCH] Update licenses.yml --- .github/workflows/licenses.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/licenses.yml b/.github/workflows/licenses.yml index 7323129..bce8a12 100644 --- a/.github/workflows/licenses.yml +++ b/.github/workflows/licenses.yml @@ -133,10 +133,7 @@ jobs: if [[ -z $(which license-checker) ]]; then npm install -g license-checker; fi - # Need to put the env variable as local variable otherwise the space in "Public Domain" will be split - ONLY_ALLOW="$SPDX_ALLOWED_DELIMITED" - echo "SPDX_ALLOWED_DELIMITED is $SPDX_ALLOWED_DELIMITED" - echo "ONLY_ALLOW is $ONLY_ALLOW" - license-checker --production --onlyAllow "$ONLY_ALLOW" --unknown --out /dev/null --excludePackages $EXCLUDE_PACKAGES + SPDX_ALLOWED_DELIMITED=$(echo $SPDX_ALLOWED_DELIMITED | tr -d "\n") + license-checker --production --onlyAllow "$SPDX_ALLOWED_DELIMITED" --unknown --out /dev/null --excludePackages $EXCLUDE_PACKAGES done echo "Passed"