From 91b2e8874fd154d9f8d4e1fbb7a4aba87d772bf9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 10 Apr 2015 13:02:17 +0100 Subject: [PATCH] Simplifying configuration of remote backups --- src/freedombone-remote | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/freedombone-remote b/src/freedombone-remote index 307a2181..ea7bd838 100755 --- a/src/freedombone-remote +++ b/src/freedombone-remote @@ -34,7 +34,7 @@ NO_OF_ARGS=$# MY_USERNAME=$USER # Filename of the remote backups list -FRIENDS_SERVERS_LIST= +FRIENDS_SERVERS_LIST=/home/$MY_USERNAME/backup.list # Minimum password length in characters MINIMUM_PASSWORD_LENGTH=10 @@ -50,18 +50,13 @@ function show_help { echo '' echo '' echo ' -h --help Show help' + echo ' -u --username User to create the backups.list file for' echo ' -l --list Remote backup list (usually /home/$USER/backup.list)' echo ' -m --min Minimum password length (characters)' echo '' exit 0 } -# If there are no options specified -if [[ $NO_OF_ARGS == 0 ]]; then - show_help - exit 0 -fi - # Get the commandline options while [[ $# > 1 ]] do