diff options
Diffstat (limited to 'lib/chef/shell.rb')
-rw-r--r-- | lib/chef/shell.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/shell.rb b/lib/chef/shell.rb index 7cb34aa5b9..a4c1e71d63 100644 --- a/lib/chef/shell.rb +++ b/lib/chef/shell.rb @@ -325,7 +325,7 @@ module Shell puts "loading configuration: #{config_msg}" # load the config (if we have one) - if !config[:config_file].nil? + unless config[:config_file].nil? if File.exist?(config[:config_file]) && File.readable?(config[:config_file]) Chef::Config.from_file(config[:config_file]) end |