gentoo / tatt

[MIRROR] arch testing tool
https://gitweb.gentoo.org/proj/tatt.git
GNU General Public License v2.0
11 stars 14 forks source link

add proper exit status for scripts #48

Open DerDakon opened 6 years ago

DerDakon commented 6 years ago

ideally I would like to do something like

./foo-useflags.sh  && ./foo-rdeps.sh && ./foo-commit.sh

To make this work the return value needs to be accumulated across the script steps and only returned at the end.

simonvanderveldt commented 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

DerDakon commented 4 years ago

Use test script done in 41442dc25c6fe59858376c9c6964215341237bc4.