Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
133a6b1a48 | |||
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 ""
|
||||||
@ -300,7 +300,7 @@ function parse_options {
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
-s | --checksum)
|
-s | --checksum)
|
||||||
OPTIONS="-arcv -H -X -R"
|
OPTIONS="-arcvh -H -X -R"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
@ -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
|
||||||
|
Reference in New Issue
Block a user