Change functions to not us CamelCase.
authordseefeld <dseefeld@microsoft.com>
Fri, 27 Oct 2017 19:38:28 +0000 (19:38 +0000)
committerdseefeld <dseefeld@microsoft.com>
Fri, 27 Oct 2017 19:38:28 +0000 (19:38 +0000)
Commit migrated from https://github.com/dotnet/corefx/commit/32a99cc58f67a4baa27b46a910a44d772ad3ff5d

src/libraries/init-tools.sh

index 58d600c..cd8e077 100755 (executable)
@@ -44,7 +44,7 @@ display_error_message()
 }
 
 # Executes a command and retries if it fails.
-executeWithRetry() {
+execute_with_retry() {
     local count=0
     local retries=${retries:-5}
     local waitFactor=${waitFactor:-6} 
@@ -120,7 +120,7 @@ if [ ! -e $__DOTNET_PATH ]; then
     echo "Installing dotnet cli..."
     __DOTNET_LOCATION="https://dotnetcli.azureedge.net/dotnet/Sdk/${__DOTNET_TOOLS_VERSION}/${__DOTNET_PKG}.tar.gz"
 
-    installDotNetCLI() {
+    install_dotnet_cli() {
         echo "Installing '${__DOTNET_LOCATION}' to '$__DOTNET_PATH/dotnet.tar'" >> "$__init_tools_log"
         rm -rf -- "$__DOTNET_PATH/*"
         # curl has HTTPS CA trust-issues less often than wget, so lets try that first.
@@ -132,7 +132,7 @@ if [ ! -e $__DOTNET_PATH ]; then
         cd $__DOTNET_PATH
         tar -xf $__DOTNET_PATH/dotnet.tar
     }
-    executeWithRetry installDotNetCLI >> "$__init_tools_log" 2>&1
+    execute_with_retry install_dotnet_cli >> "$__init_tools_log" 2>&1
 
     cd $__scriptpath
 fi