瀏覽代碼

Exit if zeronet is not installed

Bob Mottram 9 年之前
父節點
當前提交
7324b3863a
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      src/freedombone-mesh

+ 4
- 0
src/freedombone-mesh 查看文件

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