From ec7c9c910a73aede5d1cb4820e2304b06574a754 Mon Sep 17 00:00:00 2001
From: Steven Baltakatei Sandoval <baltakatei@gmail.com>
Date: Mon, 18 Dec 2023 23:02:26 +0000
Subject: [PATCH 1/1] chore(user/rsync_tranches.sh):minor style, correct
 spelling

---
 user/{rsync_traunches.sh => rsync_tranches.sh} | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
 rename user/{rsync_traunches.sh => rsync_tranches.sh} (94%)

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;
-- 
2.39.5