catalyst-auto/run_cmd: append logs instead of overwrite

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
This commit is contained in:
Robin H. Johnson 2017-12-14 19:44:07 -08:00
parent a5c5c7faad
commit 561af1245f
No known key found for this signature in database
GPG key ID: 19395F23C58826C4

View file

@ -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.