mirror of
https://github.com/laurent22/rsync-time-backup
synced 2024-12-04 17:39:10 +00:00
Also detect single dashes as error
This also recognizes single dashes as invalid input: rsync_tmbackup.sh - 1 2 3 Expected output: an error because it's unknown what the single `-` could mean Actual output: rsync_tmbackup: Safety check failed - the destination does not appear to be a backup folder or drive (marker file not found). rsync_tmbackup: If it is indeed a backup folder, you may add the marker file by running the following command: rsync_tmbackup: rsync_tmbackup: mkdir -p -- "1" ; touch "1/backup.marker" rsync_tmbackup:
This commit is contained in:
parent
fd4a29e848
commit
260715a9b9
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ while :; do
|
|||
EXCLUSION_FILE="$3"
|
||||
break
|
||||
;;
|
||||
-?*)
|
||||
-*)
|
||||
fn_log_error "Unknown option: \"$1\""
|
||||
fn_log_info ""
|
||||
fn_display_usage
|
||||
|
|
Loading…
Reference in a new issue