diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-06-02 16:09:59 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-06-02 16:09:59 +0200 |
commit | f2a413bef5c4f8cbbfae32a35f2540793ae011a2 (patch) | |
tree | 5690f34a14366c62dc4c21cbffcc82c12fbf8b22 /xlocate | |
parent | d07f8ec8e2432a35860af5b7ff2894bdf3742d28 (diff) | |
download | xtools-f2a413bef5c4f8cbbfae32a35f2540793ae011a2.tar.gz xtools-f2a413bef5c4f8cbbfae32a35f2540793ae011a2.tar.xz xtools-f2a413bef5c4f8cbbfae32a35f2540793ae011a2.zip |
xlocate: force grep.lineNumber=false v0.41.1
Diffstat (limited to 'xlocate')
-rwxr-xr-x | xlocate | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlocate b/xlocate index 995bd58..30234bc 100755 --- a/xlocate +++ b/xlocate @@ -70,7 +70,7 @@ if [ -d "$XLOCATE_GIT" ]; then if find /var/db/xbps/ -name '*repodata' -newer "$XLOCATE_GIT/HEAD" | grep -q .; then echo "xlocate: database outdated, please run xlocate -g." 1>&2 fi - git --git-dir="$XLOCATE_GIT" grep "$@" @ | + git -c grep.lineNumber=false --git-dir="$XLOCATE_GIT" grep "$@" @ | sed 's/^@://; s/:/\t/' | grep . elif [ -e "$XLOCATE_DB" ]; then if find /var/db/xbps/ -name '*repodata' -newer "$XLOCATE_DB" | grep -q .; then |