Sha256: 5630ee8beefcce192504784127bcee4c7a81f20c8c78c8c4bf6fee9e5242febd
Contents?: true
Size: 409 Bytes
Versions: 146
Compression:
Stored size: 409 Bytes
Contents
# This script which will fail the first `RETRY_LIMIT` times when run and then # will exit successfully on later runs. It will store counter state in a file # in the provided `BASEDIR` directory. set -x BASEDIR=${1} RETRY_LIMIT=${2} current=`cat ${BASEDIR}/value.txt || echo '0'` current=$((current+1)) echo "${current}" > ${BASEDIR}/value.txt if [ "$current" -gt "${RETRY_LIMIT}" ]; then exit 0; fi exit 1
Version data entries
146 entries across 146 versions & 1 rubygems