I have an execute block that runs an external install script, that I have no power over. That install script sometimes immediately does what I want and at other times first runs an arbitrary number of updates and needs to be called again to do the actual install. The update processes return failure 1 and the actual install returns success 0. Is there an elegant way to rerun the execute block until the script returns 0?
Of course I could just put several copies of the execute block into the recipe that only run when the folder that will be created doesn't exist and ignore whether the run was a success or not. But that would be incredibly ugly and hacky.