aboutsummaryrefslogtreecommitdiff
path: root/ci/retry
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2019-08-10 12:56:46 -0400
committerMarcoFalke <falke.marco@gmail.com>2019-08-15 11:12:34 -0400
commitfa31bc35eb8dd7e727e3e1eaf2c45017cd63bdcb (patch)
tree6cf47d9094d34eab3b9f6d09f2918cf1106faad9 /ci/retry
parentfa0aac0f43a108a88b03a346464ecda4ae2cf630 (diff)
ci: Remove dependence on travis, use it as fallback env
Diffstat (limited to 'ci/retry')
-rw-r--r--ci/retry/README.md2
-rwxr-xr-xci/retry/retry4
2 files changed, 3 insertions, 3 deletions
diff --git a/ci/retry/README.md b/ci/retry/README.md
index ead2271f64..983a498070 100644
--- a/ci/retry/README.md
+++ b/ci/retry/README.md
@@ -35,7 +35,7 @@ Help:
-m, --min=secs Exponenetial Backoff: minimum sleep amount (seconds): Default 0.3
-x, --max=secs Exponenetial Backoff: maximum sleep amount (seconds): Default 60
-f, --fail="script +cmds" Fail Script: run in case of final failure
-
+
### Examples
No problem:
diff --git a/ci/retry/retry b/ci/retry/retry
index 03dc180ef2..0e5f6e9701 100755
--- a/ci/retry/retry
+++ b/ci/retry/retry
@@ -4,7 +4,7 @@ GETOPT_BIN=$IN_GETOPT_BIN
GETOPT_BIN=${GETOPT_BIN:-getopt}
__sleep_amount() {
- if [ -n "$constant_sleep" ]; then
+ if [ -n "$constant_sleep" ]; then
sleep_time=$constant_sleep
else
#TODO: check for awk
@@ -159,5 +159,5 @@ EOF
done
retry "$max_tries" "$min_sleep" "$max_sleep" "$constant_sleep" "$fail_script" "$@"
-
+
fi