parent
063e40da8a
commit
f1c6231067
4
dnvm.ps1
4
dnvm.ps1
|
|
@ -67,7 +67,7 @@ function _WriteOut {
|
||||||
|
|
||||||
### Constants
|
### Constants
|
||||||
$ProductVersion="1.0.0"
|
$ProductVersion="1.0.0"
|
||||||
$BuildVersion="beta8-15515"
|
$BuildVersion="beta8-15516"
|
||||||
$Authors="Microsoft Open Technologies, Inc."
|
$Authors="Microsoft Open Technologies, Inc."
|
||||||
|
|
||||||
# If the Version hasn't been replaced...
|
# If the Version hasn't been replaced...
|
||||||
|
|
@ -1610,6 +1610,7 @@ function dnvm-run {
|
||||||
}
|
}
|
||||||
_WriteDebug "> $dnxExe $DnxArguments"
|
_WriteDebug "> $dnxExe $DnxArguments"
|
||||||
& $dnxExe @DnxArguments
|
& $dnxExe @DnxArguments
|
||||||
|
$Script:ExitCode = $LASTEXITCODE
|
||||||
}
|
}
|
||||||
|
|
||||||
<#
|
<#
|
||||||
|
|
@ -1651,6 +1652,7 @@ function dnvm-exec {
|
||||||
$env:PATH = "$runtimeBin;$($env:PATH)"
|
$env:PATH = "$runtimeBin;$($env:PATH)"
|
||||||
& $Command @Arguments
|
& $Command @Arguments
|
||||||
} finally {
|
} finally {
|
||||||
|
$Script:ExitCode = $LASTEXITCODE
|
||||||
$env:PATH = $oldPath
|
$env:PATH = $oldPath
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
4
dnvm.sh
4
dnvm.sh
|
|
@ -2,7 +2,7 @@
|
||||||
# Source this file from your .bash-profile or script to use
|
# Source this file from your .bash-profile or script to use
|
||||||
|
|
||||||
# "Constants"
|
# "Constants"
|
||||||
_DNVM_BUILDNUMBER="beta8-15515"
|
_DNVM_BUILDNUMBER="beta8-15516"
|
||||||
_DNVM_AUTHORS="Microsoft Open Technologies, Inc."
|
_DNVM_AUTHORS="Microsoft Open Technologies, Inc."
|
||||||
_DNVM_RUNTIME_PACKAGE_NAME="dnx"
|
_DNVM_RUNTIME_PACKAGE_NAME="dnx"
|
||||||
_DNVM_RUNTIME_FRIENDLY_NAME=".NET Execution Environment"
|
_DNVM_RUNTIME_FRIENDLY_NAME=".NET Execution Environment"
|
||||||
|
|
@ -747,6 +747,7 @@ dnvm()
|
||||||
local hostpath="$runtimeBin/dnx"
|
local hostpath="$runtimeBin/dnx"
|
||||||
if [[ -e $hostpath ]]; then
|
if [[ -e $hostpath ]]; then
|
||||||
$hostpath $@
|
$hostpath $@
|
||||||
|
return $?
|
||||||
else
|
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"
|
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
|
fi
|
||||||
|
|
@ -757,6 +758,7 @@ dnvm()
|
||||||
PATH=$(__dnvm_prepend_path "$PATH" "$runtimeBin")
|
PATH=$(__dnvm_prepend_path "$PATH" "$runtimeBin")
|
||||||
$@
|
$@
|
||||||
)
|
)
|
||||||
|
return $?
|
||||||
;;
|
;;
|
||||||
"use")
|
"use")
|
||||||
echo "Adding" $runtimeBin "to process PATH"
|
echo "Adding" $runtimeBin "to process PATH"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue