浏览代码

Messages when adding tahoelafs server

Bob Mottram 8 年前
父节点
当前提交
df259331b8
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5
    0
      src/freedombone-app-tahoelafs

+ 5
- 0
src/freedombone-app-tahoelafs 查看文件

@@ -476,15 +476,19 @@ function add_tahoelafs_server {
476 476
     furl="$4"
477 477
 
478 478
     if [ ${#storage_hostname} -eq 0 ]; then
479
+        echo $'No storage hostname'
479 480
         return
480 481
     fi
481 482
     if [ ${#public_key} -eq 0 ]; then
483
+        echo $'No public key'
482 484
         return
483 485
     fi
484 486
     if [ ${#nick} -eq 0 ]; then
487
+        echo $'No nick'
485 488
         return
486 489
     fi
487 490
     if [ ${#furl} -eq 0 ]; then
491
+        echo $'No furl'
488 492
         return
489 493
     fi
490 494
 
@@ -492,6 +496,7 @@ function add_tahoelafs_server {
492 496
         echo 'storage:' > ${tahoelafs_storage_file}
493 497
     else
494 498
         if grep -q "${public_key}" ${tahoelafs_storage_file}; then
499
+            echo $'Public key already exists'
495 500
             return
496 501
         fi
497 502
         echo '# storage' >> ${tahoelafs_storage_file}