shedd / duckpan-vagrant

Vagrant + Chef virtual development environment for DuckDuckGo (http://duckduckhack.com)
Apache License 2.0
5 stars 5 forks source link

Only run the action if the file exists #36

Closed JamyGolden closed 8 years ago

JamyGolden commented 8 years ago

I'm on a Mac and running OS X 10.11 El Capitan. I don't think that should affect this error, since it's contained within the VM, but the action :delete line was crashing the vagrant provision because the file didn't exist. The if statement just checks if the file exists before running the delete action. This fixed the provision for me.

shedd commented 8 years ago

thanks for the enhancement!