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

Source: AspNet/kvm@6550ac887e
This commit is contained in:
ASP.NET Push Bot 2015-07-29 09:21:17 -07:00 committed by unknown
parent 81fe6dc7c8
commit f853bc9a4b
2 changed files with 7 additions and 6 deletions

View File

@ -67,7 +67,7 @@ function _WriteOut {
### Constants
$ProductVersion="1.0.0"
$BuildVersion="beta7-10402"
$BuildVersion="beta7-10403"
$Authors="Microsoft Open Technologies, Inc."
# If the Version hasn't been replaced...

11
dnvm.sh
View File

@ -2,7 +2,7 @@
# Source this file from your .bash-profile or script to use
# "Constants"
_DNVM_BUILDNUMBER="beta7-10402"
_DNVM_BUILDNUMBER="beta7-10403"
_DNVM_AUTHORS="Microsoft Open Technologies, Inc."
_DNVM_RUNTIME_PACKAGE_NAME="dnx"
_DNVM_RUNTIME_FRIENDLY_NAME=".NET Execution Environment"
@ -245,14 +245,15 @@ __dnvm_unpack() {
[ -e "$runtimeFile" ] && rm -f "$runtimeFile"
#Set shell commands as executable
find "$runtimeFolder/bin/" -type f \
-exec sh -c "head -c 20 {} | grep '/usr/bin/env bash\|/bin/bash' > /dev/null" \; -print | xargs -r chmod 775
#Set dnx to be executable
if [[ -s "$runtimeFolder/bin/dnx" ]]; then
chmod 775 "$runtimeFolder/bin/dnx"
fi
#Set dnu to be executable
if [[ -s "$runtimeFolder/bin/dnu" ]]; then
chmod 775 "$runtimeFolder/bin/dnu"
fi
}
__dnvm_requested_version_or_alias() {