Fix gate log collection

Correct a regression in the log collection scripts.

Change-Id: I269ebf67ef7968b6d313eb796216be480f4712e5
This commit is contained in:
Jonathan Rosser 2018-08-01 09:12:20 +01:00
parent a75af3e6fd
commit c5e97872cb
1 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ function find_log_files {
}
function rename_log_files {
find_files |\
find_log_files |\
while read filename; do \
mv ${filename} ${filename}.txt || echo "WARNING: Could not rename ${filename}"; \
done
@ -142,7 +142,7 @@ function rename_log_files {
function compress_log_files {
# We use 'command' to ensure that we're not executing with an alias.
GZIP_CMD="command gzip --force --best"
find_files |\
find_log_files |\
while read filename; do \
${GZIP_CMD} ${filename} || echo "WARNING: Could not gzip ${filename}"; \
done