diff options
Diffstat (limited to 'byteback-receive')
-rwxr-xr-x | byteback-receive | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/byteback-receive b/byteback-receive index 62fdb4f..d412bea 100755 --- a/byteback-receive +++ b/byteback-receive @@ -29,7 +29,7 @@ fatal("#{byteback_root} does not exist") unless File.directory?(byteback_root) if ARGV[0] == 'rsync' ARGV[-1] = "#{byteback_root}/current" exec(*ARGV) -elsif ARGV[0] == 'byteback-snapshot' || (ARGV[0] == 'sudo' && ARGV[1] == 'byteback-snapshot') +elsif ARGV[0] == 'byteback-snapshot' ARGV.concat(["--root", "#{byteback_root}"]) exec(*ARGV) end |