⬆️ dnvm.ps1, dnvm.cmd, dnvm.sh

Source: aspnet/dnvm@4f0b099409
This commit is contained in:
ASP.NET Push Bot 2015-09-10 16:31:31 -07:00 committed by unknown
parent 063e40da8a
commit f1c6231067
2 changed files with 6 additions and 2 deletions

View File

@ -67,7 +67,7 @@ function _WriteOut {
### Constants
$ProductVersion="1.0.0"
$BuildVersion="beta8-15515"
$BuildVersion="beta8-15516"
$Authors="Microsoft Open Technologies, Inc."
# If the Version hasn't been replaced...
@ -1610,6 +1610,7 @@ function dnvm-run {
}
_WriteDebug "> $dnxExe $DnxArguments"
& $dnxExe @DnxArguments
$Script:ExitCode = $LASTEXITCODE
}
<#
@ -1651,6 +1652,7 @@ function dnvm-exec {
$env:PATH = "$runtimeBin;$($env:PATH)"
& $Command @Arguments
} finally {
$Script:ExitCode = $LASTEXITCODE
$env:PATH = $oldPath
}
}

View File

@ -2,7 +2,7 @@
# Source this file from your .bash-profile or script to use
# "Constants"
_DNVM_BUILDNUMBER="beta8-15515"
_DNVM_BUILDNUMBER="beta8-15516"
_DNVM_AUTHORS="Microsoft Open Technologies, Inc."
_DNVM_RUNTIME_PACKAGE_NAME="dnx"
_DNVM_RUNTIME_FRIENDLY_NAME=".NET Execution Environment"
@ -747,6 +747,7 @@ dnvm()
local hostpath="$runtimeBin/dnx"
if [[ -e $hostpath ]]; then
$hostpath $@
return $?
else
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"
fi
@ -757,6 +758,7 @@ dnvm()
PATH=$(__dnvm_prepend_path "$PATH" "$runtimeBin")
$@
)
return $?
;;
"use")
echo "Adding" $runtimeBin "to process PATH"