catalyst-auto/run_cmd: append logs instead of overwrite
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
This commit is contained in:
parent
a5c5c7faad
commit
561af1245f
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue