Explorar el Código

Exit if zeronet is not installed

Bob Mottram hace 9 años
padre
commit
7324b3863a
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4
    0
      src/freedombone-mesh

+ 4
- 0
src/freedombone-mesh Ver fichero

@@ -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