summaryrefslogtreecommitdiff
path: root/toru-path
diff options
context:
space:
mode:
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