Skip to content

Commit 03dcbad

Browse files
committed
Zsh: Work around differences in shell globing
Resolves the following error when sourcing kvm.sh in zsh: find: {$HOME}/.kre/packages/*: No such file or directory
1 parent 3aedca4 commit 03dcbad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kvm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ kvm()
365365
printf "$formatString" "------" "-------" "-------" "--------" "-----"
366366

367367
local formattedHome=`(echo $KRE_USER_PACKAGES | sed s=$HOME=~=g)`
368-
for f in $(find $KRE_USER_PACKAGES/* -name "$searchGlob" -type d -prune -exec basename {} \;); do
368+
for f in $(find $(echo $KRE_USER_PACKAGES/*) -name "$searchGlob" -type d -prune -exec basename {} \;); do
369369
local active=""
370370
[[ $PATH == *"$KRE_USER_PACKAGES/$f/bin"* ]] && local active=" *"
371371
local pkgName=$(_kvm_package_runtime "$f")

0 commit comments

Comments
 (0)