From: Steven Baltakatei Sandoval Date: Mon, 18 Dec 2023 23:02:26 +0000 (+0000) Subject: chore(user/rsync_tranches.sh):minor style, correct spelling X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/commitdiff_plain/ec7c9c910a73aede5d1cb4820e2304b06574a754?ds=sidebyside chore(user/rsync_tranches.sh):minor style, correct spelling --- diff --git a/user/rsync_traunches.sh b/user/rsync_tranches.sh similarity index 94% rename from user/rsync_traunches.sh rename to user/rsync_tranches.sh index 23e5242..7be12ad 100644 --- a/user/rsync_traunches.sh +++ b/user/rsync_tranches.sh @@ -7,10 +7,9 @@ function rsync_tranches() { # Desc: Runs rsync in parallel across different files size ranges # Example: rsync_tranches -avu --progress --dry-run ./SOURCE/ ./DEST/ # Depends: rsync 3.2.7 - # Version: 0.0.1 + # Version: 0.0.2 local -a rsync_opts=(); - local source; - local dest; + local source dest; # Parse arguments until source and destination are found while [[ $# -gt 0 ]]; do @@ -32,7 +31,7 @@ function rsync_tranches() { done; # Validate that source and destination are set - if [ -z "$source" ] || [ -z "$dest" ]; then + if [[ -z "$source" ]] || [[ -z "$dest" ]]; then echo "Error: Source and destination directories must be specified." 1>&2; return 1; fi;