about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCameron Nemo <cnemo@tutanota.com>2019-08-13 20:06:57 -0700
committerLeah Neukirchen <leah@vuxu.org>2019-11-29 17:48:25 +0100
commitf72938bf57a4077508158d42733d0ce8a2f9b7d5 (patch)
treeb6adfea2ef800ca6304863aaa4e454c1825e5530
parent67011df0685cad41f3729abf4a8109302dbd404d (diff)
downloadxtools-f72938bf57a4077508158d42733d0ce8a2f9b7d5.tar.gz
xtools-f72938bf57a4077508158d42733d0ce8a2f9b7d5.tar.xz
xtools-f72938bf57a4077508158d42733d0ce8a2f9b7d5.zip
xlint: accept Public Domain as a license
Closes: #146 [via git-merge-pr]
-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"