From f57d788d2d598303c93e0ae13507b1e1155bc386 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Thu, 13 Aug 2015 12:59:09 +0300 Subject: Specify the timeout period as an integer, not a string. This is required as we're essentially passing the value to the command-line, via fork()+exec(). --- bin/byteback-backup | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/byteback-backup b/bin/byteback-backup index 84d39e5..6f34591 100755 --- a/bin/byteback-backup +++ b/bin/byteback-backup @@ -60,7 +60,7 @@ def rsync(*sources) # # Add on the I/O-timeout # - args += ['--timeout', @io_timeout ] unless ( @io_timeout.nil? ) + args += ['--timeout', @io_timeout.to_s ] unless ( @io_timeout.nil? ) args += ['--rsh', "ssh -o BatchMode=yes -x -a -i #{@ssh_key} -l #{@destination_user}"] @@ -101,7 +101,6 @@ end # Run all the executable-scripts in the specified directory. # def run_parts(dir) - if File.directory? dir args = ['run-parts', dir ] log_system(*args) -- cgit v1.2.1