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:
Joshua Hesketh 2015-01-27 11:59:54 +11:00
parent 5070d5e644
commit de61f924b1

View File

@ -5,6 +5,9 @@ END_UUID=$(cat /proc/sys/kernel/random/uuid)
echo "Grabbing consoleLog ($END_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) # Get the plain text version (does not contain links or timestamps)
console_log_path='consoleText' console_log_path='consoleText'
while ! grep -q "$END_UUID" /tmp/console.txt; do while ! grep -q "$END_UUID" /tmp/console.txt; do