From f72938bf57a4077508158d42733d0ce8a2f9b7d5 Mon Sep 17 00:00:00 2001 From: Cameron Nemo Date: Tue, 13 Aug 2019 20:06:57 -0700 Subject: xlint: accept Public Domain as a license Closes: #146 [via git-merge-pr] --- xlint | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xlint b/xlint index 32e69ee..395e334 100755 --- a/xlint +++ b/xlint @@ -267,12 +267,12 @@ for template; do fi fi - : ${LICENSE_LIST:=/usr/share/spdx/license.lst} + : "${LICENSE_LIST:=/usr/share/spdx/license.lst}" if [ -f "${LICENSE_LIST}" ]; then sed -n 's/license="\(.*\)"/\1/p' "$template" | tr , "\n" | while read -r l; do - if echo "$l" | grep -q 'custom:'; then - continue - fi + case "$l" in + custom:*|'Public Domain') continue ;; + esac if ! grep -q "^${l}$" "${LICENSE_LIST}"; then scan "license=.*$l" "use SPDX id for '$l' license or see Manual.md" -- cgit 1.4.1