summaryrefslogtreecommitdiff
path: root/toru-path
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-08-22 13:36:04 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-08-22 13:36:04 -0300
commit2dd17dbe005b9d87a1d629e8fb029ae10f493790 (patch)
tree83fcf1b2d1e7b9fe97cb4955bce7d1dac848deb4 /toru-path
parentb8d0640c2d882e514a583e372bb26280a60aa604 (diff)
parentb3b52d5c4a3cbcdeb505b099230107b830290e8e (diff)
Merge branch 'master' into newroot
Conflicts: treepkg
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