From 584532e2c76aa80a9c9a24d9f57200acbc8f2a5b Mon Sep 17 00:00:00 2001 From: Fuxino Date: Fri, 23 Jun 2017 13:47:44 +0200 Subject: [PATCH] Fix minor bug Now the program is able to get as input arguments or output directory files/directories containing spaces. --- simple-backup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simple-backup b/simple-backup index 881c22f..53feb1d 100755 --- a/simple-backup +++ b/simple-backup @@ -19,7 +19,7 @@ #Help function function help_function { - echo "simple_backup, version 1.4" + echo "simple_backup, version 1.4.1" echo "" echo "Usage: $0 [OPTIONS]" echo "" @@ -352,7 +352,7 @@ if [[ "$#" -eq 0 ]]; then read_conf else - parse_options $@ + parse_options "$@" if [[ $n_in -gt 0 && ( -z $BACKUP_DIR || ! -d $BACKUP_DIR ) ]]; then #If the backup directory is not set or doesn't exist, exit