parent
a4314d1b30
commit
98355aa2af
24
dnvm.ps1
24
dnvm.ps1
|
|
@ -67,7 +67,7 @@ function _WriteOut {
|
|||
|
||||
### Constants
|
||||
$ProductVersion="1.0.0"
|
||||
$BuildVersion="rc2-15538"
|
||||
$BuildVersion="rc2-15539"
|
||||
$Authors="Microsoft Open Technologies, Inc."
|
||||
|
||||
# If the Version hasn't been replaced...
|
||||
|
|
@ -1466,13 +1466,21 @@ function dnvm-install {
|
|||
else {
|
||||
_WriteOut "Installing to $RuntimeFolder"
|
||||
_WriteDebug "Moving package contents to $RuntimeFolder"
|
||||
try {
|
||||
Move-Item $UnpackFolder $RuntimeFolder
|
||||
} catch {
|
||||
if(Test-Path $RuntimeFolder) {
|
||||
#Attempt to cleanup the runtime folder if it is there after a fail.
|
||||
Remove-Item $RuntimeFolder -Recurse -Force
|
||||
throw
|
||||
$retry=0
|
||||
while($retry -ne 2) {
|
||||
try {
|
||||
Move-Item $UnpackFolder $RuntimeFolder -Force
|
||||
break
|
||||
} catch {
|
||||
$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.
|
||||
|
|
|
|||
2
dnvm.sh
2
dnvm.sh
|
|
@ -2,7 +2,7 @@
|
|||
# Source this file from your .bash-profile or script to use
|
||||
|
||||
# "Constants"
|
||||
_DNVM_BUILDNUMBER="rc2-15538"
|
||||
_DNVM_BUILDNUMBER="rc2-15539"
|
||||
_DNVM_AUTHORS="Microsoft Open Technologies, Inc."
|
||||
_DNVM_RUNTIME_PACKAGE_NAME="dnx"
|
||||
_DNVM_RUNTIME_FRIENDLY_NAME=".NET Execution Environment"
|
||||
|
|
|
|||
Loading…
Reference in New Issue