From df259331b8e4ea2a76806d6acdb08e143149bc5e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 7 Mar 2017 15:16:45 +0000 Subject: [PATCH] Messages when adding tahoelafs server --- src/freedombone-app-tahoelafs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/freedombone-app-tahoelafs b/src/freedombone-app-tahoelafs index a62d9ec3..965c4843 100755 --- a/src/freedombone-app-tahoelafs +++ b/src/freedombone-app-tahoelafs @@ -476,15 +476,19 @@ function add_tahoelafs_server { furl="$4" if [ ${#storage_hostname} -eq 0 ]; then + echo $'No storage hostname' return fi if [ ${#public_key} -eq 0 ]; then + echo $'No public key' return fi if [ ${#nick} -eq 0 ]; then + echo $'No nick' return fi if [ ${#furl} -eq 0 ]; then + echo $'No furl' return fi @@ -492,6 +496,7 @@ function add_tahoelafs_server { echo 'storage:' > ${tahoelafs_storage_file} else if grep -q "${public_key}" ${tahoelafs_storage_file}; then + echo $'Public key already exists' return fi echo '# storage' >> ${tahoelafs_storage_file}