restic: support --test mode

This commit is contained in:
Jerome Charaoui 2021-01-09 21:20:09 -05:00
parent 99be27b93c
commit bd9cc6db42

View File

@ -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"