Renamed execute() function to include Retry in the name.
authordseefeld <dseefeld@microsoft.com>
Fri, 27 Oct 2017 19:26:26 +0000 (19:26 +0000)
committerdseefeld <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

index fc9f0fd..58d600c 100755 (executable)
@@ -44,7 +44,7 @@ display_error_message()
 }
 
 # Executes a command and retries if it fails.
-execute() {
+executeWithRetry() {
     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
+    executeWithRetry installDotNetCLI >> "$__init_tools_log" 2>&1
 
     cd $__scriptpath
 fi