[pacman-dev] [PATCH 3/3] Fix linting of whitespace in pkgver

Rikard Falkeborn rikard.falkeborn at gmail.com
Tue Feb 20 20:52:13 UTC 2018


In order to detect if pkgver contains whitespace, we need to quote it.
Previously, only the characters up to the first whitespace was checked.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn at gmail.com>
---
 scripts/libmakepkg/lint_pkgbuild/pkgver.sh.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/libmakepkg/lint_pkgbuild/pkgver.sh.in b/scripts/libmakepkg/lint_pkgbuild/pkgver.sh.in
index 0ec6584c..2325b1f5 100644
--- a/scripts/libmakepkg/lint_pkgbuild/pkgver.sh.in
+++ b/scripts/libmakepkg/lint_pkgbuild/pkgver.sh.in
@@ -47,5 +47,5 @@ lint_pkgver() {
 		return 0
 	fi
 
-	check_pkgver $pkgver
+	check_pkgver "$pkgver"
 }
-- 
2.16.2


More information about the pacman-dev mailing list