fix(knife): make autocomplete for cookbooks works

This commit is contained in:
Laurent Commarieu 2017-02-17 11:48:55 +01:00 committed by GitHub
parent d2725d44fc
commit f4f647a8c9

View File

@ -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