From 3616dc64fe0320f0ce60387682dcb3a484055a3d Mon Sep 17 00:00:00 2001 From: Axel Kittenberger Date: Tue, 30 Oct 2012 09:57:54 +0100 Subject: [PATCH] fixing rsync parameter generation, added password-file, thx to foxban --- default-rsync.lua | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/default-rsync.lua b/default-rsync.lua index ba45535..25f7cea 100644 --- a/default-rsync.lua +++ b/default-rsync.lua @@ -399,7 +399,7 @@ rsync.prepare = function( crsync._computed = { true } local computed = crsync._computed - local computedN = 1 + local computedN = 2 local shortFlags = { verbose = 'v', @@ -461,18 +461,23 @@ rsync.prepare = function( end end + if crsync.password_file then + computed[ computedN ] = '--password-file=' .. crsync.password_file + computedN = computedN + 1 + end + if crsync.rsh then - computed[ computedN ] = '--rsh='..crsync.rsh + computed[ computedN ] = '--rsh=' .. crsync.rsh computedN = computedN + 1 end if crsync.rsync_path then - computed[ computedN ] = '--rsync-path='..crsync.rsync_path + computed[ computedN ] = '--rsync-path=' .. crsync.rsync_path computedN = computedN + 1 end if crsync.temp_dir then - computed[ computedN ] = '--temp-dir='..crsync.temp_dir + computed[ computedN ] = '--temp-dir=' .. crsync.temp_dir computedN = computedN + 1 end