mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-12-03 22:48:48 +08:00
Merge pull request #531 from hlx98007/master
knife plugin cannot ls path with quotes
This commit is contained in:
commit
a22fe39009
1 file changed
+1
-1
+1
-1
@@ -219,7 +219,7 @@ _chef_users_remote() {
|
||||
|
||||
# The chef_x_local functions use the knife config to find the paths of relevant objects x to be uploaded to the server
|
||||
_chef_cookbooks_local() {
|
||||
(for i in $( grep cookbook_path $HOME/.chef/knife.rb | awk 'BEGIN {FS = "[" }; {print $2}' | sed 's/\,//g' | sed "s/'//g" | sed 's/\(.*\)]/\1/' ); do ls $i; done)
|
||||
(for i in $( grep cookbook_path $HOME/.chef/knife.rb | awk 'BEGIN {FS = "[" }; {print $2}' | sed 's/\,//g' | sed "s/'//g" | sed 's/\(.*\)]/\1/' | cut -d '"' -f2 ); do ls $i; done)
|
||||
}
|
||||
|
||||
# This function extracts the available cookbook versions on the chef server
|
||||
|
||||
Reference in new issue
Block a user