From 89860aa3f6dc3e0ad4eb263c382d37a92746b68d Mon Sep 17 00:00:00 2001
From: Silvio Rhatto <rhatto@riseup.net>
Date: Fri, 7 Nov 2014 14:36:25 -0200
Subject: [PATCH] Rsync: check test mode also in prepare_storage (#8196)

---
 handlers/rsync.in | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/handlers/rsync.in b/handlers/rsync.in
index 000f3ea..ee2b733 100644
--- a/handlers/rsync.in
+++ b/handlers/rsync.in
@@ -747,6 +747,10 @@ function move_files {
 
 function prepare_storage {
 
+  if [ "$test" ]; then
+    return
+  fi
+
   section="`basename $SECTION`"
 
   if [ "$format" == "short" ]; then
-- 
GitLab