diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2014-10-11 21:50:21 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2014-10-11 21:50:21 +0200 |
commit | ee03f2869d751e4cda25e36d812c444a8a63a609 (patch) | |
tree | b4f8d20d2280a2539cd860eb92367d6195302fa3 | |
parent | afd84ea4e728f96fec169efbd0a9bb11994cb2a1 (diff) | |
download | xtools-ee03f2869d751e4cda25e36d812c444a8a63a609.tar.gz xtools-ee03f2869d751e4cda25e36d812c444a8a63a609.tar.xz xtools-ee03f2869d751e4cda25e36d812c444a8a63a609.zip |
xlint: satisfy dash quoting
-rwxr-xr-x | xlint | 4 |
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 } |