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