⬆️ dnvm.ps1, dnvm.cmd, dnvm.sh

Source: AspNet/kvm@e15339329e
This commit is contained in:
ASP.NET Push Bot 2015-06-30 10:28:18 -07:00 committed by unknown
parent 1f80539ba1
commit a06c4a2151
2 changed files with 18 additions and 11 deletions

View File

@ -67,7 +67,7 @@ function _WriteOut {
### Constants
$ProductVersion="1.0.0"
$BuildVersion="beta6-10394"
$BuildVersion="beta6-10395"
$Authors="Microsoft Open Technologies, Inc."
# If the Version hasn't been replaced...

11
dnvm.sh
View File

@ -2,7 +2,7 @@
# Source this file from your .bash-profile or script to use
# "Constants"
_DNVM_BUILDNUMBER="beta6-10394"
_DNVM_BUILDNUMBER="beta6-10395"
_DNVM_AUTHORS="Microsoft Open Technologies, Inc."
_DNVM_RUNTIME_PACKAGE_NAME="dnx"
_DNVM_RUNTIME_FRIENDLY_NAME=".NET Execution Environment"
@ -14,7 +14,6 @@ _DNVM_VERSION_MANAGER_NAME=".NET Version Manager"
_DNVM_DEFAULT_FEED="https://www.nuget.org/api/v2"
_DNVM_DEFAULT_UNSTABLE_FEED="https://www.myget.org/F/aspnetvnext/api/v2"
_DNVM_UPDATE_LOCATION="https://raw.githubusercontent.com/aspnet/Home/dev/dnvm.sh"
_DNVM_HOME_VAR_NAME="DNX_HOME"
if [ "$NO_COLOR" != "1" ]; then
# ANSI Colors
@ -47,6 +46,11 @@ if [ -z "$DNX_USER_HOME" ]; then
eval DNX_USER_HOME="~/$_DNVM_RUNTIME_FOLDER_NAME"
fi
if [ -z "$DNX_HOME" ]; then
# Set to the user home value
DNX_HOME="$DNX_USER_HOME"
fi
_DNVM_USER_PACKAGES="$DNX_USER_HOME/runtimes"
_DNVM_ALIAS_DIR="$DNX_USER_HOME/alias"
_DNVM_DNVM_DIR="$DNX_USER_HOME/dnvm"
@ -697,5 +701,8 @@ dnvm()
return 0
}
# Add the home location's bin directory to the path
export PATH="$DNX_HOME/bin:$PATH"
# Generate the command function using the constant defined above.
$_DNVM_COMMAND_NAME list default >/dev/null && $_DNVM_COMMAND_NAME use default >/dev/null || true