quit finding after one match
This commit is contained in:
parent
e4732d88cd
commit
9c69160563
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ push() {
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
local fn=$md5.$ext
|
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
|
[ -n "$s" ] && print $s || print \#$fn
|
||||||
md5= ext= size=
|
md5= ext= size=
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue