fix(knife): make autocomplete for cookbooks works
This commit is contained in:
parent
d2725d44fc
commit
f4f647a8c9
@ -219,7 +219,7 @@ _chef_cookbooks_local() {
|
||||
fi
|
||||
local cookbook_path=${KNIFE_COOKBOOK_PATH:-$(grep cookbook_path $knife_rb | awk 'BEGIN {FS = "[" }; {print $2}' | sed 's/\,//g' | sed "s/'//g" | sed 's/\(.*\)]/\1/' )}
|
||||
fi
|
||||
(for i in $cookbook_path; do ls $i; done)
|
||||
(for i in $(echo $cookbook_path); do ls $i; done)
|
||||
}
|
||||
|
||||
# This function extracts the available cookbook versions on the chef server
|
||||
|
Loading…
Reference in New Issue
Block a user