#!/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 $?