summaryrefslogtreecommitdiff
path: root/treepkg
diff options
context:
space:
mode:
Diffstat (limited to 'treepkg')
-rwxr-xr-xtreepkg3
1 files changed, 2 insertions, 1 deletions
diff --git a/treepkg b/treepkg
index d21377d..8dab83a 100755
--- a/treepkg
+++ b/treepkg
@@ -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
}