mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-08 20:02:32 +01:00
restic: support --test mode
This commit is contained in:
parent
99be27b93c
commit
bd9cc6db42
@ -72,6 +72,9 @@ function export_debug {
|
||||
function run_cmd {
|
||||
local pass=0
|
||||
local cmd=$1
|
||||
|
||||
[ $test -eq 1 ] && return 0
|
||||
|
||||
while [ $pass -lt $retry_run ]; do
|
||||
(( pass++ ))
|
||||
debug "Attempt $pass"
|
||||
|
Loading…
Reference in New Issue
Block a user