runabol / piper

piper - a distributed workflow engine
Apache License 2.0
487 stars 86 forks source link

Added waitFor chmod operation on Bash task #6

Closed vascofg closed 6 years ago

vascofg commented 6 years ago

Fix Issue #5. The problem was that the chmod operation ran asynchronously and you weren't waiting for the end of this execution. This caused the intermittent fault where sometimes we had permission to execute it and sometimes we didn't. I've included a check for 0 return code for good measure.

runabol commented 6 years ago

Looks great. Thank you for your contribution.