Browse Source

Exit if zeronet is not installed

Bob Mottram 9 years ago
parent
commit
7324b3863a
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/freedombone-mesh

+ 4
- 0
src/freedombone-mesh View File

@@ -379,6 +379,10 @@ if [ ! $peer_index ]; then
379 379
 fi
380 380
 
381 381
 if [[ $peer_index == 1 ]]; then
382
+    if [ ! -d $ZERONET_DIR ]; then
383
+        echo 'zeronet was not installed'
384
+        exit 63
385
+    fi
382 386
     cd $ZERONET_DIR
383 387
 
384 388
     if [ ! -d ~/.bttrack ]; then