aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-11-06 11:46:03 -0200
committerSilvio Rhatto <rhatto@riseup.net>2014-11-06 11:46:03 -0200
commitb3c7693c1598b9fc2aef77fd707a4cd8bd466412 (patch)
tree8f5ae963580d8049927ce1819fe8636b1e9a31fe
parent3bc1d3326b743b11687d78555dca4c9cfa204f52 (diff)
downloadpuppet-backup-b3c7693c1598b9fc2aef77fd707a4cd8bd466412.tar.gz
puppet-backup-b3c7693c1598b9fc2aef77fd707a4cd8bd466412.tar.bz2
Rsync handler patch from upstream #8196
-rw-r--r--files/handlers/rsync4
1 files changed, 4 insertions, 0 deletions
diff --git a/files/handlers/rsync b/files/handlers/rsync
index 634f036..7a78681 100644
--- a/files/handlers/rsync
+++ b/files/handlers/rsync
@@ -908,6 +908,10 @@ function set_filelist {
function set_rsync_options {
+ if [ "$test" ]; then
+ rsync_options="$rsync_options --dry-run"
+ fi
+
if [ "$numericids" != "0" ]; then
rsync_options="$rsync_options --numeric-ids"
fi