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

Version Path
beaker-6.4.1 acceptance/fixtures/files/retry_script.txt
beaker-6.4.0 acceptance/fixtures/files/retry_script.txt
beaker-6.3.0 acceptance/fixtures/files/retry_script.txt
beaker-6.2.0 acceptance/fixtures/files/retry_script.txt
beaker-6.1.0 acceptance/fixtures/files/retry_script.txt
beaker-5.8.1 acceptance/fixtures/files/retry_script.txt
beaker-4.42.0 acceptance/fixtures/files/retry_script.txt
beaker-5.8.0 acceptance/fixtures/files/retry_script.txt
beaker-5.7.0 acceptance/fixtures/files/retry_script.txt
beaker-4.41.2 acceptance/fixtures/files/retry_script.txt
beaker-4.41.1 acceptance/fixtures/files/retry_script.txt
beaker-5.6.0 acceptance/fixtures/files/retry_script.txt
beaker-4.41.0 acceptance/fixtures/files/retry_script.txt
beaker-5.5.0 acceptance/fixtures/files/retry_script.txt
beaker-5.4.0 acceptance/fixtures/files/retry_script.txt
beaker-5.3.1 acceptance/fixtures/files/retry_script.txt
beaker-4.40.2 acceptance/fixtures/files/retry_script.txt
beaker-5.3.0 acceptance/fixtures/files/retry_script.txt
beaker-4.40.1 acceptance/fixtures/files/retry_script.txt
beaker-5.2.0 acceptance/fixtures/files/retry_script.txt