File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 2 files changed +14
-5
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 = " rc1-15526 "
70
+ $BuildVersion = " rc1-15527 "
71
71
$Authors = " Microsoft Open Technologies, Inc."
72
72
73
73
# If the Version hasn't been replaced...
@@ -846,6 +846,14 @@ function Is-Elevated() {
846
846
return $user.IsInRole ([Security.Principal.WindowsBuiltInRole ] " Administrator" )
847
847
}
848
848
849
+ function Get-ScriptRoot () {
850
+ if ($PSVersionTable.PSVersion.Major -ge 3 ) {
851
+ return $PSScriptRoot
852
+ }
853
+
854
+ return Split-Path $script :MyInvocation.MyCommand.Path - Parent
855
+ }
856
+
849
857
# ## Commands
850
858
851
859
<#
@@ -863,9 +871,10 @@ function dnvm-update-self {
863
871
$wc = New-Object System.Net.WebClient
864
872
Apply- Proxy $wc - Proxy:$Proxy
865
873
866
- $dnvmFile = Join-Path $PSScriptRoot " dnvm.ps1"
867
- $tempDnvmFile = Join-Path $PSScriptRoot " temp"
868
- $backupFilePath = Join-Path $PSSCriptRoot " dnvm.ps1.bak"
874
+ $CurrentScriptRoot = Get-ScriptRoot
875
+ $dnvmFile = Join-Path $CurrentScriptRoot " dnvm.ps1"
876
+ $tempDnvmFile = Join-Path $CurrentScriptRoot " temp"
877
+ $backupFilePath = Join-Path $CurrentScriptRoot " dnvm.ps1.bak"
869
878
870
879
$wc.DownloadFile ($DNVMUpgradeUrl , $tempDnvmFile )
871
880
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=" rc1-15526 "
5
+ _DNVM_BUILDNUMBER=" rc1-15527 "
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