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