Open DerDakon opened 6 years ago
Random drive-by comment, was just browsing through the issues :)
If I understand the question correctly you can achieve this using pipefail
, see https://www.gnu.org/software/bash/manual/html_node/Pipelines.html
Use test script done in 41442dc25c6fe59858376c9c6964215341237bc4.
ideally I would like to do something like
To make this work the return value needs to be accumulated across the script steps and only returned at the end.