aboutsummaryrefslogtreecommitdiffstats
path: root/src/_knife
diff options
context:
space:
mode:
authorLuxing Huang <lhuang@bbmtek.com>2017-09-20 16:39:46 -0400
committerLuxing Huang <lhuang@bbmtek.com>2017-09-20 16:39:46 -0400
commit59f97c36c913eb0803d5f46ce5e213f82d0764d0 (patch)
tree2a5f793c3e6f4e1223e23b8950222acbc73625f8 /src/_knife
parentMerge pull request #524 from dark-panda/pgsql-enhancements (diff)
downloadzsh-completions-59f97c36c913eb0803d5f46ce5e213f82d0764d0.tar
zsh-completions-59f97c36c913eb0803d5f46ce5e213f82d0764d0.tar.gz
zsh-completions-59f97c36c913eb0803d5f46ce5e213f82d0764d0.tar.bz2
zsh-completions-59f97c36c913eb0803d5f46ce5e213f82d0764d0.tar.lz
zsh-completions-59f97c36c913eb0803d5f46ce5e213f82d0764d0.tar.xz
zsh-completions-59f97c36c913eb0803d5f46ce5e213f82d0764d0.tar.zst
zsh-completions-59f97c36c913eb0803d5f46ce5e213f82d0764d0.zip
fix knife cannot ls a path problem. (double quotes is the issue)
Diffstat (limited to 'src/_knife')
-rw-r--r--src/_knife2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/_knife b/src/_knife
index 2c61d4f..53aa9ac 100644
--- a/src/_knife
+++ b/src/_knife
@@ -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