File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
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 = " beta5-10374 "
70
+ $BuildVersion = " beta5-10375 "
71
71
$Authors = " Microsoft Open Technologies, Inc."
72
72
73
73
# If the Version hasn't been replaced...
@@ -1148,12 +1148,15 @@ function dnvm-install {
1148
1148
Write-Progress - Activity " Installing runtime" " Unpacking runtime" - Id 1
1149
1149
Unpack- Package $DownloadFile $UnpackFolder
1150
1150
1151
- New-Item - Type Directory $RuntimeFolder - Force | Out-Null
1152
- _WriteOut " Installing to $RuntimeFolder "
1153
- _WriteDebug " Moving package contents to $RuntimeFolder "
1154
- Move-Item " $UnpackFolder \*" $RuntimeFolder
1155
- _WriteDebug " Cleaning temporary directory $UnpackFolder "
1156
- Remove-Item $UnpackFolder - Force | Out-Null
1151
+ if (Test-Path $RuntimeFolder ) {
1152
+ # Ensure the runtime hasn't been installed in the time it took to download the package.
1153
+ _WriteOut " '$runtimeFullName ' is already installed."
1154
+ }
1155
+ else {
1156
+ _WriteOut " Installing to $RuntimeFolder "
1157
+ _WriteDebug " Moving package contents to $RuntimeFolder "
1158
+ Move-Item $UnpackFolder $RuntimeFolder
1159
+ }
1157
1160
1158
1161
dnvm- use $PackageVersion - Architecture:$Architecture - Runtime:$Runtime - Persistent:$Persistent
1159
1162
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=" beta5-10374 "
5
+ _DNVM_BUILDNUMBER=" beta5-10375 "
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