Fix minor bug
Now the program is able to get as input arguments or output directory files/directories containing spaces.
This commit is contained in:
parent
97d1a14260
commit
584532e2c7
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
#Help function
|
#Help function
|
||||||
function help_function {
|
function help_function {
|
||||||
echo "simple_backup, version 1.4"
|
echo "simple_backup, version 1.4.1"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Usage: $0 [OPTIONS]"
|
echo "Usage: $0 [OPTIONS]"
|
||||||
echo ""
|
echo ""
|
||||||
@ -352,7 +352,7 @@ if [[ "$#" -eq 0 ]]; then
|
|||||||
|
|
||||||
read_conf
|
read_conf
|
||||||
else
|
else
|
||||||
parse_options $@
|
parse_options "$@"
|
||||||
|
|
||||||
if [[ $n_in -gt 0 && ( -z $BACKUP_DIR || ! -d $BACKUP_DIR ) ]]; then
|
if [[ $n_in -gt 0 && ( -z $BACKUP_DIR || ! -d $BACKUP_DIR ) ]]; then
|
||||||
#If the backup directory is not set or doesn't exist, exit
|
#If the backup directory is not set or doesn't exist, exit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user