From 561af1245fe65a8d9422c36677e97704ca691869 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Thu, 14 Dec 2017 19:44:07 -0800 Subject: [PATCH] catalyst-auto/run_cmd: append logs instead of overwrite Signed-off-by: Robin H. Johnson --- 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.