Skip to content

Instantly share code, notes, and snippets.

@DavidDreher
DavidDreher / retry.sh
Created September 3, 2018 12:33 — forked from felipou/retry.sh
Retry command
#
# Created by Felipe Machado - 2016/02/14
#
# A retry command for bash
# Retries the given command up to MAX_RETRIES, with an interval of SLEEP_TIME
# between each retry. Just put it on your bash_profile and be happy :)
# Usage:
# retry [-s SLEEP_TIME] [-m MAX_RETRIES] COMMAND_WITH_ARGUMENTS
#
# Codes used as reference: