Skip to content

Commit

Permalink
Set a not_if guard to the directory resource
Browse files Browse the repository at this point in the history
Fixes #26
  • Loading branch information
Salim Afiune committed Aug 11, 2015
1 parent ade1fb4 commit d7452f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/ingredient_config_provider.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def whyrun_supported?
owner 'root'
group 'root'
mode '0755'
not_if { ::File.exist?(::File.dirname(target_config)) }
recursive true
action :create
end
Expand Down

0 comments on commit d7452f8

Please sign in to comment.