Browse Source

Messages when adding tahoelafs server

Bob Mottram 8 years ago
parent
commit
df259331b8
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/freedombone-app-tahoelafs

+ 5
- 0
src/freedombone-app-tahoelafs View File

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