File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ function _WriteOut {
67
67
68
68
# ## Constants
69
69
$ProductVersion = " 1.0.0"
70
- $BuildVersion = " beta7-10406 "
70
+ $BuildVersion = " beta7-10407 "
71
71
$Authors = " Microsoft Open Technologies, Inc."
72
72
73
73
# If the Version hasn't been replaced...
Original file line number Diff line number Diff line change 2
2
# Source this file from your .bash-profile or script to use
3
3
4
4
# "Constants"
5
- _DNVM_BUILDNUMBER=" beta7-10406 "
5
+ _DNVM_BUILDNUMBER=" beta7-10407 "
6
6
_DNVM_AUTHORS=" Microsoft Open Technologies, Inc."
7
7
_DNVM_RUNTIME_PACKAGE_NAME=" dnx"
8
8
_DNVM_RUNTIME_FRIENDLY_NAME=" .NET Execution Environment"
@@ -736,6 +736,10 @@ dnvm()
736
736
[[ ! -d $_DNVM_USER_PACKAGES ]] && echo " $_DNVM_RUNTIME_FRIENDLY_NAME is not installed." && return 1
737
737
738
738
local searchGlob=" $_DNVM_RUNTIME_PACKAGE_NAME -*"
739
+ local runtimes=$( find $_DNVM_USER_PACKAGES -name " $searchGlob " \( -type d -or -type l \) -prune -exec basename {} \; | sort -t. -k2 -k3 -k4 -k1)
740
+
741
+ [[ -z $runtimes ]] && echo ' No runtimes installed. You can run `dnvm install latest` or `dnvm upgrade` to install a runtime.' && return
742
+
739
743
echo " "
740
744
741
745
# Separate empty array declaration from initialization
@@ -764,7 +768,7 @@ dnvm()
764
768
fi
765
769
766
770
local formattedHome=` (echo $_DNVM_USER_PACKAGES | sed s=$HOME =~ =g)`
767
- for f in $( find $_DNVM_USER_PACKAGES -name " $searchGlob " \( -type d -or -type l \) -prune -exec basename {} \; | sort -t. -k2 -k3 -k4 -k1 ) ; do
771
+ for f in $runtimes ; do
768
772
local active=" "
769
773
[[ $PATH == * " $_DNVM_USER_PACKAGES /$f /bin" * ]] && local active=" *"
770
774
local pkgRuntime=$( __dnvm_package_runtime " $f " )
You can’t perform that action at this time.
0 commit comments