parent
482dd39ab8
commit
578f5428ba
2
dnvm.ps1
2
dnvm.ps1
|
|
@ -67,7 +67,7 @@ function _WriteOut {
|
||||||
|
|
||||||
### Constants
|
### Constants
|
||||||
$ProductVersion="1.0.0"
|
$ProductVersion="1.0.0"
|
||||||
$BuildVersion="beta5-10364"
|
$BuildVersion="beta5-10365"
|
||||||
$Authors="Microsoft Open Technologies, Inc."
|
$Authors="Microsoft Open Technologies, Inc."
|
||||||
|
|
||||||
# If the Version hasn't been replaced...
|
# If the Version hasn't been replaced...
|
||||||
|
|
|
||||||
10
dnvm.sh
10
dnvm.sh
|
|
@ -2,7 +2,7 @@
|
||||||
# Source this file from your .bash-profile or script to use
|
# Source this file from your .bash-profile or script to use
|
||||||
|
|
||||||
# "Constants"
|
# "Constants"
|
||||||
_DNVM_BUILDNUMBER="beta5-10364"
|
_DNVM_BUILDNUMBER="beta5-10365"
|
||||||
_DNVM_AUTHORS="Microsoft Open Technologies, Inc."
|
_DNVM_AUTHORS="Microsoft Open Technologies, Inc."
|
||||||
_DNVM_RUNTIME_PACKAGE_NAME="dnx"
|
_DNVM_RUNTIME_PACKAGE_NAME="dnx"
|
||||||
_DNVM_RUNTIME_FRIENDLY_NAME=".NET Execution Environment"
|
_DNVM_RUNTIME_FRIENDLY_NAME=".NET Execution Environment"
|
||||||
|
|
@ -374,6 +374,12 @@ dnvm()
|
||||||
local runtimeVersion=$(__dnvm_package_version "$runtimeFullName")
|
local runtimeVersion=$(__dnvm_package_version "$runtimeFullName")
|
||||||
local runtimeFolder="$_DNVM_USER_PACKAGES/$runtimeFullName"
|
local runtimeFolder="$_DNVM_USER_PACKAGES/$runtimeFullName"
|
||||||
local runtimeFile="$runtimeFolder/$runtimeFullName.nupkg"
|
local runtimeFile="$runtimeFolder/$runtimeFullName.nupkg"
|
||||||
|
local runtimeClr=$(__dnvm_package_runtime "$runtimeFullName")
|
||||||
|
|
||||||
|
if [ -n "$force" ]; then
|
||||||
|
printf "%b\n" "${Yel}Forcing download by deleting $runtimeFolder directory ${RCol}"
|
||||||
|
rm -rf "$runtimeFolder"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -e "$runtimeFolder" ]; then
|
if [ -e "$runtimeFolder" ]; then
|
||||||
echo "$runtimeFullName already installed"
|
echo "$runtimeFullName already installed"
|
||||||
|
|
@ -383,7 +389,7 @@ dnvm()
|
||||||
__dnvm_unpack "$runtimeFile" "$runtimeFolder"
|
__dnvm_unpack "$runtimeFile" "$runtimeFolder"
|
||||||
[[ $? == 1 ]] && return 1
|
[[ $? == 1 ]] && return 1
|
||||||
fi
|
fi
|
||||||
$_DNVM_COMMAND_NAME use "$runtimeVersion" "$persistent"
|
$_DNVM_COMMAND_NAME use "$runtimeVersion" "$persistent" -r "$runtimeClr"
|
||||||
[[ -n $alias ]] && $_DNVM_COMMAND_NAME alias "$alias" "$runtimeVersion"
|
[[ -n $alias ]] && $_DNVM_COMMAND_NAME alias "$alias" "$runtimeVersion"
|
||||||
else
|
else
|
||||||
local runtimeFullName="$(__dnvm_requested_version_or_alias $versionOrAlias)"
|
local runtimeFullName="$(__dnvm_requested_version_or_alias $versionOrAlias)"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue