You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
printf"%b\n""${Red}$_DNVM_COMMAND_NAME needs curl to proceed. ${RCol}">&2;
71
76
return 1
72
77
fi
73
-
74
-
local url="$DNX_ACTIVE_FEED/GetUpdates()?packageIds=%27$_DNVM_RUNTIME_PACKAGE_NAME-$platform%27&versions=%270.0%27&includePrerelease=true&includeAllVersions=false"
78
+
79
+
if [[ $platform=="mono" ]];then
80
+
#dnx-mono
81
+
local packageId="$_DNVM_RUNTIME_PACKAGE_NAME-$platform"
82
+
else
83
+
#dnx-coreclr-linux-x64
84
+
local packageId="$_DNVM_RUNTIME_PACKAGE_NAME-$platform-$(__dnvm_current_os)-$arch"
85
+
fi
86
+
local url="$DNX_ACTIVE_FEED/GetUpdates()?packageIds=%27$packageId%27&versions=%270.0%27&includePrerelease=true&includeAllVersions=false"
version="$(echo $xml| sed 's/.*<[a-zA-Z]:Version>\([^<]*\).*/\1/')"
@@ -164,7 +176,7 @@ __dnvm_download() {
164
176
165
177
if [[ $httpResult=="404" ]];then
166
178
printf"%b\n""${Red}$runtimeFullName was not found in repository $DNX_ACTIVE_FEED${RCol}"
167
-
printf"%b\n""${Cya}This is most likely caused by the feed not having the version that you typed. Check that you typed the right version and try again. Other possible causes are the feed doesn't have a $DNVM_RUNTIME_SHORT_NAME of the right name format or some other error caused a 404 on the server.${RCol}"
179
+
printf"%b\n""${Cya}This is most likely caused by the feed not having the version that you typed. Check that you typed the right version and try again. Other possible causes are the feed doesn't have a $_DNVM_RUNTIME_SHORT_NAME of the right name format or some other error caused a 404 on the server.${RCol}"
printf"%b\n""${Yel}It appears you don't have Mono available. Remember to get Mono before trying to run $DNVM_RUNTIME_SHORT_NAME application. ${RCol}">&2;
412
445
fi
413
446
414
447
if [[ "$versionOrAlias"=="latest" ]];then
415
-
echo"Determining latest version"
416
-
versionOrAlias=$(__dnvm_find_latest)
417
-
[[ $?== 1 ]] &&echo"Error: Could not find latest version from feed $DNX_ACTIVE_FEED"&&return 1
0 commit comments