Skip to content

Commit f1c6231

Browse files
ASP.NET Push Botunknown
authored andcommitted
⬆️ dnvm.ps1, dnvm.cmd, dnvm.sh
Source: aspnet/dnvm@4f0b099
1 parent 063e40d commit f1c6231

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

dnvm.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function _WriteOut {
6767

6868
### Constants
6969
$ProductVersion="1.0.0"
70-
$BuildVersion="beta8-15515"
70+
$BuildVersion="beta8-15516"
7171
$Authors="Microsoft Open Technologies, Inc."
7272

7373
# If the Version hasn't been replaced...
@@ -1610,6 +1610,7 @@ function dnvm-run {
16101610
}
16111611
_WriteDebug "> $dnxExe $DnxArguments"
16121612
& $dnxExe @DnxArguments
1613+
$Script:ExitCode = $LASTEXITCODE
16131614
}
16141615

16151616
<#
@@ -1651,6 +1652,7 @@ function dnvm-exec {
16511652
$env:PATH = "$runtimeBin;$($env:PATH)"
16521653
& $Command @Arguments
16531654
} finally {
1655+
$Script:ExitCode = $LASTEXITCODE
16541656
$env:PATH = $oldPath
16551657
}
16561658
}

dnvm.sh

Lines changed: 3 additions & 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="beta8-15515"
5+
_DNVM_BUILDNUMBER="beta8-15516"
66
_DNVM_AUTHORS="Microsoft Open Technologies, Inc."
77
_DNVM_RUNTIME_PACKAGE_NAME="dnx"
88
_DNVM_RUNTIME_FRIENDLY_NAME=".NET Execution Environment"
@@ -747,6 +747,7 @@ dnvm()
747747
local hostpath="$runtimeBin/dnx"
748748
if [[ -e $hostpath ]]; then
749749
$hostpath $@
750+
return $?
750751
else
751752
echo "Cannot find $_DNVM_RUNTIME_SHORT_NAME in $runtimeBin. It may have been corrupted. Use '$_DNVM_COMMAND_NAME install $versionOrAlias -f' to attempt to reinstall it"
752753
fi
@@ -757,6 +758,7 @@ dnvm()
757758
PATH=$(__dnvm_prepend_path "$PATH" "$runtimeBin")
758759
$@
759760
)
761+
return $?
760762
;;
761763
"use")
762764
echo "Adding" $runtimeBin "to process PATH"

0 commit comments

Comments
 (0)