commit: ef83c934a8bd2a1e59e0c84ff7dc3342be4685bf
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 9 04:53:03 2016 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Thu Dec 22 01:20:03 2016 +0000
URL: https://gitweb.gentoo.org/proj/releng.git/commit/?id=ef83c934
catalyst-auto: fix return value passing with run_cmd helper
tools/catalyst-auto | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/catalyst-auto b/tools/catalyst-auto
index ad4a95a..30fed8f 100755
--- a/tools/catalyst-auto
+++ b/tools/catalyst-auto
@@ -82,6 +82,9 @@ run_cmd() {
else
"$@" &> "${logfile}"
fi
+
+ # If we used tee above, make sure we pass back up the command's error.
+ return ${PIPESTATUS[0]}
}
update_symlinks() {