Skip to content

Commit

Permalink
Updating kvm.sh with local nuget package install fix from Home
Browse files Browse the repository at this point in the history
  • Loading branch information
graemechristie committed Jun 15, 2014
1 parent d5b3d19 commit 0e7a059
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions setup/kvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ kvm()
if [[ $versionOrAlias == "none" ]]; then
echo "Removing KRE from process PATH"
# Strip other version from PATH
PATH=`_kvm_strip_path "$PATH" "/bin"`
PATH=$(_kvm_strip_path "$PATH" "/bin")

if [[ -n $persistent && -e "$KRE_USER_HOME/alias/default.alias" ]]; then
echo "Setting default KRE to none"
Expand All @@ -274,8 +274,10 @@ kvm()
return 1
fi
echo "Adding" $kreBin "to process PATH"
PATH=`_kvm_strip_path "$PATH" "/bin"`
PATH=`_kvm_prepend_path "$PATH" "$kreBin"`

PATH=$(_kvm_strip_path "$PATH" "/bin")
PATH=$(_kvm_prepend_path "$PATH" "$kreBin")

if [[ -n $persistent ]]; then
local kreVersion=$(_kvm_package_version "$kreFullName")
kvm alias default "$kreVersion"
Expand Down Expand Up @@ -326,7 +328,7 @@ kvm()
echo $searchGlob
fi

for f in $(find $KRE_USER_PACKAGES/* -name $searchGlob -type d -prune -exec basename {} \;); do
for f in $(find $KRE_USER_PACKAGES/* -name "$searchGlob" -type d -prune -exec basename {} \;); do
#TODO: Format, extract package, version arch etc
echo -n $f
if [[ $PATH == *"$KRE_USER_PACKAGES/$f/bin"* ]]; then
Expand Down

0 comments on commit 0e7a059

Please sign in to comment.