docker-debmirror/retry.sh

6 lines
159 B
Bash
Executable File

#!/bin/bash
# try a command up to 5 times
# 15 minute sleep between tries
# exit after the first success
for i in 1 2 3 4 5; do $@ && break || sleep 900; done