summary refs log tree commit diff
diff options
context:
space:
mode:
authorclassabbyamp <void@placeviolette.net>2022-06-23 14:29:12 -0400
committerLeah Neukirchen <leah@vuxu.org>2022-06-25 00:00:27 +0200
commit7f4d32a54b868b2413caefb55111625ca1d410b9 (patch)
treec91c6cbef7ceeecbf5fb529e8f73bf9b1ad82eb6
parent008a65e1ab0b9b4f37d7b119a739864abb67b754 (diff)
downloadxtools-7f4d32a54b868b2413caefb55111625ca1d410b9.tar.gz
xtools-7f4d32a54b868b2413caefb55111625ca1d410b9.tar.xz
xtools-7f4d32a54b868b2413caefb55111625ca1d410b9.zip
xlint: fix lints broken by extra sed
bug introduced in 8c0e21060fd0abdb16c10d62a56ead0a4da75062
-rwxr-xr-xxlint5
1 files changed, 2 insertions, 3 deletions
diff --git a/xlint b/xlint
index 0585960..d94a507 100755
--- a/xlint
+++ b/xlint
@@ -445,9 +445,8 @@ for argument; do
 	scan 'homepage=.*\$' "homepage should not use variables"
 	scan 'maintainer=(?!.*<.*@.*>).*' "maintainer needs email address"
 	scan 'maintainer=.*<.*@users.noreply.github.com>.*' "maintainer needs a valid address for sending mail"
-	scan '^(?!\s*('"$variables"'))[^\s=-]+=' \
-		"custom variables should use _ prefix: \2"
-	scan '^[^ =]*=(""|''|)$' "variable set to empty string: \2"
+	scan '^(?!\s*('"$variables"'))[^\s=-]+=' "custom variables should use _ prefix: \\\2"
+	scan '^[^ =]*=(""|''|)$' "variable set to empty string: \\\2"
 	scan '^(.*)-docs_package().*' 'use <pkgname>-doc subpackage for documentation'
 	scan 'distfiles=.*github.com.*/archive/.*\.zip[\"]?$' 'Use the distfile .tar.gz instead of .zip'
 	scan 'distfiles=.*downloads\.sourceforge\.net' 'use $SOURCEFORGE_SITE'