commit: 561af1245fe65a8d9422c36677e97704ca691869
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 15 03:44:07 2017 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Fri Dec 15 03:44:07 2017 +0000
URL: https://gitweb.gentoo.org/proj/releng.git/commit/?id=561af124
catalyst-auto/run_cmd: append logs instead of overwrite
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
tools/catalyst-auto | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/catalyst-auto b/tools/catalyst-auto
index ae47f443..35443c4a 100755
--- a/tools/catalyst-auto
+++ b/tools/catalyst-auto
@@ -79,9 +79,9 @@ run_cmd() {
if [ $verbose = 1 ]; then
echo "*** Running command: $*"
- "$@" 2>&1 | tee "${logfile}"
+ "$@" 2>&1 | tee -a "${logfile}"
else
- "$@" &> "${logfile}"
+ "$@" &>> "${logfile}"
fi
# If we used tee above, make sure we pass back up the command's error.