Skip to content

Commit 501aa83

Browse files
ASP.NET Push Botunknown
authored andcommitted
⬆️ dnvm.ps1, dnvm.cmd, dnvm.sh
Source: aspnet/dnvm@8aa7b4d
1 parent cc903dd commit 501aa83

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

dnvm.ps1

Lines changed: 11 additions & 4 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="rc1-15523"
70+
$BuildVersion="rc1-15524"
7171
$Authors="Microsoft Open Technologies, Inc."
7272

7373
# If the Version hasn't been replaced...
@@ -1848,10 +1848,17 @@ if(Test-Path env:\KRE_HOME) {
18481848

18491849
$cmd = $args[0]
18501850

1851+
$cmdargs = @()
18511852
if($args.Length -gt 1) {
1852-
$cmdargs = @($args[1..($args.Length-1)])
1853-
} else {
1854-
$cmdargs = @()
1853+
# Combine arguments, ensuring any containing whitespace or parenthesis are correctly quoted
1854+
ForEach ($arg In $args[1..($args.Length-1)]) {
1855+
if ($arg -match "[\s\(\)]") {
1856+
$cmdargs += """$arg"""
1857+
} else {
1858+
$cmdargs += $arg
1859+
}
1860+
$cmdargs += " "
1861+
}
18551862
}
18561863

18571864
# Can't add this as script-level arguments because they mask '-a' arguments in subcommands!

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="rc1-15523"
5+
_DNVM_BUILDNUMBER="rc1-15524"
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)