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
1 changed files with 2 additions and 2 deletions
|
@ -79,9 +79,9 @@ run_cmd() {
|
||||||
|
|
||||||
if [ $verbose = 1 ]; then
|
if [ $verbose = 1 ]; then
|
||||||
echo "*** Running command: $*"
|
echo "*** Running command: $*"
|
||||||
"$@" 2>&1 | tee "${logfile}"
|
"$@" 2>&1 | tee -a "${logfile}"
|
||||||
else
|
else
|
||||||
"$@" &> "${logfile}"
|
"$@" &>> "${logfile}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If we used tee above, make sure we pass back up the command's error.
|
# If we used tee above, make sure we pass back up the command's error.
|
||||||
|
|
Loading…
Add table
Reference in a new issue