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

Source: aspnet/dnvm@74cbefa79c
This commit is contained in:
ASP.NET Push Bot 2015-11-02 09:59:52 -08:00 committed by unknown
parent a4314d1b30
commit 98355aa2af
2 changed files with 17 additions and 9 deletions

View File

@ -67,7 +67,7 @@ function _WriteOut {
### Constants ### Constants
$ProductVersion="1.0.0" $ProductVersion="1.0.0"
$BuildVersion="rc2-15538" $BuildVersion="rc2-15539"
$Authors="Microsoft Open Technologies, Inc." $Authors="Microsoft Open Technologies, Inc."
# If the Version hasn't been replaced... # If the Version hasn't been replaced...
@ -1466,13 +1466,21 @@ function dnvm-install {
else { else {
_WriteOut "Installing to $RuntimeFolder" _WriteOut "Installing to $RuntimeFolder"
_WriteDebug "Moving package contents to $RuntimeFolder" _WriteDebug "Moving package contents to $RuntimeFolder"
try { $retry=0
Move-Item $UnpackFolder $RuntimeFolder while($retry -ne 2) {
} catch { try {
if(Test-Path $RuntimeFolder) { Move-Item $UnpackFolder $RuntimeFolder -Force
#Attempt to cleanup the runtime folder if it is there after a fail. break
Remove-Item $RuntimeFolder -Recurse -Force } catch {
throw $retry=$retry+1
if($retry -eq 2) {
if(Test-Path $RuntimeFolder) {
#Attempt to cleanup the runtime folder if it is there after a fail.
_WriteDebug "Deleting $RuntimeFolder"
Remove-Item $RuntimeFolder -Recurse -Force
throw
}
}
} }
} }
#If there is nothing left in the temp folder remove it. There could be other installs happening at the same time as this. #If there is nothing left in the temp folder remove it. There could be other installs happening at the same time as this.

View File

@ -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="rc2-15538" _DNVM_BUILDNUMBER="rc2-15539"
_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"