blob: 18c1955715fdee3a89c118acffca9b02f216375a [file] [log] [blame]
#!/bin/sh
#
# Wait for any running log upload to finish, then start a new one and wait
# for the new one to finish too.
#
# Warning: this script has no timeout. If you need one, implement it in
# the caller yourself.
#
if [ ! -e /tmp/logs-uploaded ]; then
wait-until-created /tmp/logs-uploaded
fi
rm -f /tmp/logs-uploaded
upload-logs-now
wait-until-created /tmp/logs-uploaded