about summary refs log tree commit diff
path: root/xlint
diff options
context:
space:
mode:
Diffstat (limited to 'xlint')
-rwxr-xr-xxlint8
1 files 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"