projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8c0b5c
)
Renamed execute() function to include Retry in the name.
author
dseefeld
<dseefeld@microsoft.com>
Fri, 27 Oct 2017 19:26:26 +0000
(19:26 +0000)
committer
dseefeld
<dseefeld@microsoft.com>
Fri, 27 Oct 2017 19:26:26 +0000
(19:26 +0000)
Commit migrated from https://github.com/dotnet/corefx/commit/
5ff873c65181cb0e378b383156602da85b0f1094
src/libraries/init-tools.sh
patch
|
blob
|
history
diff --git
a/src/libraries/init-tools.sh
b/src/libraries/init-tools.sh
index
fc9f0fd
..
58d600c
100755
(executable)
--- a/
src/libraries/init-tools.sh
+++ b/
src/libraries/init-tools.sh
@@
-44,7
+44,7
@@
display_error_message()
}
# Executes a command and retries if it fails.
-execute() {
+execute
WithRetry
() {
local count=0
local retries=${retries:-5}
local waitFactor=${waitFactor:-6}
@@
-132,7
+132,7
@@
if [ ! -e $__DOTNET_PATH ]; then
cd $__DOTNET_PATH
tar -xf $__DOTNET_PATH/dotnet.tar
}
- execute installDotNetCLI >> "$__init_tools_log" 2>&1
+ execute
WithRetry
installDotNetCLI >> "$__init_tools_log" 2>&1
cd $__scriptpath
fi