diff options
Diffstat (limited to 'xlint')
-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 } |