diff options
| author | Luxing Huang <lhuang@bbmtek.com> | 2017-09-20 16:39:46 -0400 |
|---|---|---|
| committer | Luxing Huang <lhuang@bbmtek.com> | 2017-09-20 16:39:46 -0400 |
| commit | 59f97c36c913eb0803d5f46ce5e213f82d0764d0 (patch) | |
| tree | 2a5f793c3e6f4e1223e23b8950222acbc73625f8 /src/_knife | |
| parent | Merge pull request #524 from dark-panda/pgsql-enhancements (diff) | |
| download | zsh-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/_knife | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
