quit finding after one match

This commit is contained in:
Connor Olding 2013-12-08 06:21:28 -08:00
parent e4732d88cd
commit 9c69160563

View file

@ -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=
}