We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0347ff5 commit 96e174fCopy full SHA for 96e174f
src/ci/shared.sh
@@ -1,4 +1,4 @@
1
-#!/bin/bash
+#!/bin/false
2
# Copyright 2016 The Rust Project Developers. See the COPYRIGHT
3
# file at the top-level directory of this distribution and at
4
# http://rust-lang.org/COPYRIGHT.
@@ -9,13 +9,16 @@
9
# option. This file may not be copied, modified, or distributed
10
# except according to those terms.
11
12
+# This file is intended to be sourced with `. shared.sh` or
13
+# `source shared.sh`, hence the invalid shebang and not being
14
+# marked as an executable file in git.
15
+
16
# See http://unix.stackexchange.com/questions/82598
17
function retry {
18
+ echo "Attempting with retry:" "$@"
19
local n=1
20
local max=5
- local delay=15
21
while true; do
- echo "Attempting:" "$@"
22
"$@" && break || {
23
if [[ $n -lt $max ]]; then
24
((n++))
0 commit comments