diff options
Diffstat (limited to 'treepkg')
-rwxr-xr-x | treepkg | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -85,7 +85,8 @@ bury() { # Look in all caches but pick the first one # TODO move to a toru flag (-p?) where_is() { - grep -m1 "^${1}:" "${TORUPATH}/paths" 2>/dev/null| \ + grep "^${1}:" "${TORUPATH}/paths" 2>/dev/null| \ + tail -n1 2>/dev/null|\ cut -d: -f2 2>/dev/null } |