From b8a74f634bde5cc0a2a0e228fd1c444b8716e1e6 Mon Sep 17 00:00:00 2001 From: Gabriel Rosendorf Date: Tue, 6 Jan 2015 09:32:59 -0500 Subject: [PATCH] changed chef_cookbooks_local function to use my env vars --- src/_knife | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_knife b/src/_knife index 7f56a4c..5a965d7 100644 --- a/src/_knife +++ b/src/_knife @@ -198,7 +198,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) + ls $CHEF_REPO_DIR/cookbooks } # This function extracts the available cookbook versions on the chef server