summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-08-13 12:59:09 +0300
committerSteve Kemp <steve@steve.org.uk>2015-08-13 12:59:09 +0300
commitf57d788d2d598303c93e0ae13507b1e1155bc386 (patch)
treebad48dc24e77e71d53e42cd27be8c48870833910
parenta202827d441c3afe2ed81da32593ed2f7397228b (diff)
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().
-rwxr-xr-xbin/byteback-backup3
1 files changed, 1 insertions, 2 deletions
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)