Skip to content

Commit 0a58753

Browse files
ASP.NET Push Botunknown
ASP.NET Push Bot
authored and
unknown
committed
⬆️ dnvm.ps1, dnvm.cmd, dnvm.sh
Source: aspnet/dnvm@e196ca6
1 parent b188dc8 commit 0a58753

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dnvm.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function _WriteOut {
6767

6868
### Constants
6969
$ProductVersion="1.0.0"
70-
$BuildVersion="beta7-10400"
70+
$BuildVersion="beta7-10401"
7171
$Authors="Microsoft Open Technologies, Inc."
7272

7373
# If the Version hasn't been replaced...
@@ -1115,7 +1115,7 @@ function dnvm-upgrade {
11151115
[Parameter(Mandatory=$false)]
11161116
[switch]$Unstable)
11171117

1118-
if($OS -ne "win") {
1118+
if($OS -ne "win" -and ![String]::IsNullOrEmpty($OS)) {
11191119
#We could remove OS as an option from upgrade, but I want to take this opporunty to educate users about the difference between install and upgrade
11201120
#It's possible we should just do install here instead.
11211121
_WriteOut -ForegroundColor $ColorScheme.Error "You cannot upgrade to a non-windows runtime. Upgrade will download the latest version of the $RuntimeShortFriendlyName and also set it as your machines default. You cannot set the default $RuntimeShortFriendlyName to a non-windows version because you cannot use it to run an application. If you want to install a non-windows $RuntimeShortFriendlyName to package with your application then use 'dnvm install latest -OS:$OS' instead. Install will download the package but not set it as your default."

dnvm.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Source this file from your .bash-profile or script to use
33

44
# "Constants"
5-
_DNVM_BUILDNUMBER="beta7-10400"
5+
_DNVM_BUILDNUMBER="beta7-10401"
66
_DNVM_AUTHORS="Microsoft Open Technologies, Inc."
77
_DNVM_RUNTIME_PACKAGE_NAME="dnx"
88
_DNVM_RUNTIME_FRIENDLY_NAME=".NET Execution Environment"

0 commit comments

Comments
 (0)