Look at the "creates" attribute on the execute resource

http://docs.opscode.com/resource_execute.html

On 21/01/14 13:50, Martijn Verburg wrote:
>
> In cookbooks/openjdk8-build/recipes/default.rb:
>
> > @@ -114,8 +94,13 @@
> >  execute "build_openjdk_images" do
> >  	user node[:user]
> >  	cwd node[:openjdk][:source_tl]
> > -	command "make clean images"
> > +	if ::File.exist?("#{node[:openjdk][:build_folder]}")
> > +	    command "make images"
> > +	else
>
> Whitespace
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/AdoptOpenJDK/openjdk-chef-build/pull/22/files#r9036937>.
>