1#!/usr/bin/env bash
2sleep_time=60
3n_retries=5
4
5for i in `seq 1 $n_retries`; do
6    "$@" && exit 0
7    sleep $sleep_time
8done
9
10exit 1
11