File tree Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ function _WriteOut {
67
67
68
68
# ## Constants
69
69
$ProductVersion = " 1.0.0"
70
- $BuildVersion = " rc2-15538 "
70
+ $BuildVersion = " rc2-15539 "
71
71
$Authors = " Microsoft Open Technologies, Inc."
72
72
73
73
# If the Version hasn't been replaced...
@@ -1466,13 +1466,21 @@ function dnvm-install {
1466
1466
else {
1467
1467
_WriteOut " Installing to $RuntimeFolder "
1468
1468
_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
+ }
1476
1484
}
1477
1485
}
1478
1486
# If there is nothing left in the temp folder remove it. There could be other installs happening at the same time as this.
Original file line number Diff line number Diff line change 2
2
# Source this file from your .bash-profile or script to use
3
3
4
4
# "Constants"
5
- _DNVM_BUILDNUMBER=" rc2-15538 "
5
+ _DNVM_BUILDNUMBER=" rc2-15539 "
6
6
_DNVM_AUTHORS=" Microsoft Open Technologies, Inc."
7
7
_DNVM_RUNTIME_PACKAGE_NAME=" dnx"
8
8
_DNVM_RUNTIME_FRIENDLY_NAME=" .NET Execution Environment"
You can’t perform that action at this time.
0 commit comments