Skip to content

Commit 4505f73

Browse files
ASP.NET Push Botunknown
authored andcommitted
⬆️ dnvm.ps1, dnvm.cmd, dnvm.sh
Source: aspnet/dnvm@c10520f
1 parent 8e7d4a9 commit 4505f73

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

dnvm.ps1

Lines changed: 10 additions & 7 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="beta5-10374"
70+
$BuildVersion="beta5-10375"
7171
$Authors="Microsoft Open Technologies, Inc."
7272

7373
# If the Version hasn't been replaced...
@@ -1148,12 +1148,15 @@ function dnvm-install {
11481148
Write-Progress -Activity "Installing runtime" "Unpacking runtime" -Id 1
11491149
Unpack-Package $DownloadFile $UnpackFolder
11501150

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+
}
11571160

11581161
dnvm-use $PackageVersion -Architecture:$Architecture -Runtime:$Runtime -Persistent:$Persistent
11591162

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="beta5-10374"
5+
_DNVM_BUILDNUMBER="beta5-10375"
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)