aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/populate/populate.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/populate/populate.sh')
-rwxr-xr-xpkgs/populate/populate.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/populate/populate.sh b/pkgs/populate/populate.sh
index 670d25b..9627fb7 100755
--- a/pkgs/populate/populate.sh
+++ b/pkgs/populate/populate.sh
@@ -132,10 +132,14 @@ populate_file() {(
file_target=$target_user@$target_host:$target_path/$file_name
fi
+ if test -d "$file_path"; then
+ file_path=$file_path/
+ fi
+
rsync \
-vFrlptD \
--delete-excluded \
- "$file_path"/ \
+ "$file_path" \
-e "ssh -o ControlPersist=no -p $target_port" \
"$file_target"
)}