From 05bea3cce607ae3d9ff6151bd7ed5ed1aa113194 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 20 Aug 2014 00:58:24 +0400 Subject: [PATCH] No need to run two similar locate commands Results for `locate -b \\.git' is fully contained in `locate -b \*.git'. --- locate-all | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/locate-all b/locate-all index fb9d0d5..21daa91 100755 --- a/locate-all +++ b/locate-all @@ -1,3 +1,2 @@ #! /bin/sh -(locate -b \\.git && locate -b \*.git) | sed 's!/\.git$!!' | - sort | uniq >locate-all.list +locate -b \*.git | sed 's!/\.git$!!' | sort | uniq >locate-all.list -- 2.39.5