Remove old log fetches in case of conflict
Since we are appending to logs we should make sure the fetch destination is clean before downloading in case we are on a non-ephemerial node. Change-Id: I315fda50ab98de5dd243eec745c702877069c646
This commit is contained in:
parent
5070d5e644
commit
de61f924b1
@ -5,6 +5,9 @@ END_UUID=$(cat /proc/sys/kernel/random/uuid)
|
||||
|
||||
echo "Grabbing consoleLog ($END_UUID)"
|
||||
|
||||
# Since we are appending to fetched logs, remove any possibly old runs
|
||||
rm -f /tmp/console.txt /tmp/console.html
|
||||
|
||||
# Get the plain text version (does not contain links or timestamps)
|
||||
console_log_path='consoleText'
|
||||
while ! grep -q "$END_UUID" /tmp/console.txt; do
|
||||
|
Loading…
Reference in New Issue
Block a user