Swap wget and curl to fix init-tools capability check (dotnet/coreclr#8831)
authorDavis Goodin <dagood@users.noreply.github.com>
Fri, 6 Jan 2017 20:16:18 +0000 (14:16 -0600)
committerGitHub <noreply@github.com>
Fri, 6 Jan 2017 20:16:18 +0000 (14:16 -0600)
Commit migrated from https://github.com/dotnet/coreclr/commit/48298d2e2d31fd80528cc401f96705175e25ee8d

src/coreclr/init-tools.sh

index d4183ad..83a320f 100755 (executable)
@@ -111,9 +111,9 @@ if [ ! -e $__INIT_TOOLS_DONE_MARKER ]; then
             # curl has HTTPS CA trust-issues less often than wget, so lets try that first.
             echo "Installing '${__DOTNET_LOCATION}' to '$__DOTNET_PATH/dotnet.tar'" >> $__init_tools_log
             if command -v curl > /dev/null; then
-                wget -q -O $__DOTNET_PATH/dotnet.tar ${__DOTNET_LOCATION}
-            else
                 curl --retry 10 -sSL --create-dirs -o $__DOTNET_PATH/dotnet.tar ${__DOTNET_LOCATION}
+            else
+                wget -q -O $__DOTNET_PATH/dotnet.tar ${__DOTNET_LOCATION}
             fi
             cd $__DOTNET_PATH
             tar -xf $__DOTNET_PATH/dotnet.tar