Skip to content

Commit 98355aa

Browse files
ASP.NET Push Botunknown
authored andcommitted
⬆️ dnvm.ps1, dnvm.cmd, dnvm.sh
Source: aspnet/dnvm@74cbefa
1 parent a4314d1 commit 98355aa

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

dnvm.ps1

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function _WriteOut {
6767

6868
### Constants
6969
$ProductVersion="1.0.0"
70-
$BuildVersion="rc2-15538"
70+
$BuildVersion="rc2-15539"
7171
$Authors="Microsoft Open Technologies, Inc."
7272

7373
# If the Version hasn't been replaced...
@@ -1466,13 +1466,21 @@ function dnvm-install {
14661466
else {
14671467
_WriteOut "Installing to $RuntimeFolder"
14681468
_WriteDebug "Moving package contents to $RuntimeFolder"
1469-
try {
1470-
Move-Item $UnpackFolder $RuntimeFolder
1471-
} catch {
1472-
if(Test-Path $RuntimeFolder) {
1473-
#Attempt to cleanup the runtime folder if it is there after a fail.
1474-
Remove-Item $RuntimeFolder -Recurse -Force
1475-
throw
1469+
$retry=0
1470+
while($retry -ne 2) {
1471+
try {
1472+
Move-Item $UnpackFolder $RuntimeFolder -Force
1473+
break
1474+
} catch {
1475+
$retry=$retry+1
1476+
if($retry -eq 2) {
1477+
if(Test-Path $RuntimeFolder) {
1478+
#Attempt to cleanup the runtime folder if it is there after a fail.
1479+
_WriteDebug "Deleting $RuntimeFolder"
1480+
Remove-Item $RuntimeFolder -Recurse -Force
1481+
throw
1482+
}
1483+
}
14761484
}
14771485
}
14781486
#If there is nothing left in the temp folder remove it. There could be other installs happening at the same time as this.

dnvm.sh

Lines changed: 1 addition & 1 deletion
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="rc2-15538"
5+
_DNVM_BUILDNUMBER="rc2-15539"
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)