summaryrefslogtreecommitdiff
path: root/toru-path
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-08-15 15:25:59 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-08-15 15:25:59 -0300
commitfe138085ad889447942f03b969f1a3abb862cb8a (patch)
tree782e71f1b32b822135031317fa69ffd021935e7b /toru-path
parent0a7e0e2866dd5a3b8c794b1aefcec58c15cbe9df (diff)
Toru-where is an utility to find PKGBUILD dirs on toru's path cache
Use with toru-path
Diffstat (limited to 'toru-path')
-rwxr-xr-xtoru-path5
1 files changed, 5 insertions, 0 deletions
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