From fe138085ad889447942f03b969f1a3abb862cb8a Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Wed, 15 Aug 2012 15:25:59 -0300 Subject: Toru-where is an utility to find PKGBUILD dirs on toru's path cache Use with toru-path --- toru-path | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'toru-path') diff --git a/toru-path b/toru-path index 5065a30..9bfc3ff 100755 --- a/toru-path +++ b/toru-path @@ -2,6 +2,11 @@ source $(dirname $(command -v $0))/toru-utils +if [ ! -w "$TORUPATH" ]; then + error "Toru's path isn't writable. Please check $TORUPATH" + exit 1 +fi + LASTSYNCFILE=${TORUPATH}/lastsync.paths # TODO pass other paths via flags -- cgit v1.2.3-54-g00ecf