From 9c69160563400621b9ea249552e4954bfd7d32f4 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Sun, 8 Dec 2013 06:21:28 -0800 Subject: [PATCH] quit finding after one match --- boorufind | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boorufind b/boorufind index 778d94b..487d425 100755 --- a/boorufind +++ b/boorufind @@ -16,7 +16,7 @@ push() { return fi local fn=$md5.$ext - local s="$(find . -name $fn 2>/dev/null)" + local s="$(find . -name $fn -print -quit 2>/dev/null)" [ -n "$s" ] && print $s || print \#$fn md5= ext= size= }