diff options
Diffstat (limited to 'toru-where')
-rwxr-xr-x | toru-where | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -1,11 +1,7 @@ #!/bin/bash # Locates a PKGBUILD dir on toru's path cache +source /etc/libretools.conf -source $(dirname $(command -v $0))/toru-utils +PATHFILE=${TORUPATH}/paths.tch -# 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 $? +tcamgr get ${PATHFILE} $1 2>/dev/null || echo "" |