diff options
-rw-r--r-- | lib/chef/application/apply.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/chef/application/apply.rb b/lib/chef/application/apply.rb index a88f0c0c46..ef208a20be 100644 --- a/lib/chef/application/apply.rb +++ b/lib/chef/application/apply.rb @@ -94,11 +94,10 @@ class Chef::Application::Apply < Chef::Application if file_name.nil? Chef::Application.fatal!("No recipe file was provided", 1) else - recipe_path = file_name + recipe_path = File.expand_path(file_name) unless File.exist?(recipe_path) Chef::Application.fatal!("No file exists at #{recipe_path}", 1) end - recipe_path = File.expand_path(recipe_path) recipe_fh = open(recipe_path) recipe_text = recipe_fh.read [recipe_text, recipe_fh] |