summaryrefslogtreecommitdiff
path: root/toru-where
blob: 02a7a88f0670d1f43c2024d429fce40d64b1e87f (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
# Locates a PKGBUILD dir on toru's path cache

source $(dirname $(command -v $0))/toru-utils

# Look in all cached but pick the last one
grep "^${1}:" "${TORUPATH}/paths" 2>/dev/null| \
    tail -n1 2>/dev/null|\
    cut -d: -f2 2>/dev/null

exit $?