about summary refs log tree commit diff
path: root/xlint
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2014-10-11 21:50:21 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2014-10-11 21:50:21 +0200
commitee03f2869d751e4cda25e36d812c444a8a63a609 (patch)
treeb4f8d20d2280a2539cd860eb92367d6195302fa3 /xlint
parentafd84ea4e728f96fec169efbd0a9bb11994cb2a1 (diff)
downloadxtools-ee03f2869d751e4cda25e36d812c444a8a63a609.tar.gz
xtools-ee03f2869d751e4cda25e36d812c444a8a63a609.tar.xz
xtools-ee03f2869d751e4cda25e36d812c444a8a63a609.zip
xlint: satisfy dash quoting
Diffstat (limited to 'xlint')
-rwxr-xr-xxlint4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlint b/xlint
index 01cfee7..e2ae287 100755
--- a/xlint
+++ b/xlint
@@ -2,8 +2,8 @@
 # xlint TEMPLATE - scan XBPS template for common mistakes
 
 scan() {
-	local rx=$1 msg=$2 limit=${3:-1}
-	grep -P -Hn -m$limit -e "$rx" "$template" |
+	local rx="$1" msg="$2" limit="${3:-1}"
+	grep -P -Hn -m"$limit" -e "$rx" "$template" |
 		sed "s/^\([^:]*:[^:]*:\)\(.*\)/\1 $msg/" |
 		grep . && ret=1
 }