Thanks for your work, I have quickly tested the script on RPi 4B and it works in general, but there are some disadvantages I would like to mention:
- when the download is aborted for some reason, deletion of partially downloaded image is a bad behaviour from my point of view, a better choice should be to use the wget -c so the running script again could continue downloading the rest of the file.
- the script does not detect the upgrade image (but as a downgrade instead) when there are several images released the same day, like yesterday. FYI there's a folder content & debug output including index.html below:
thanks for testing and reporting !
for the last part:
Today I noticed this as well.
my script *doesn't* work in this special today case (same image date and diff git tag) as I thought it would.
=> line 155 ff. ?!
- it's under investigation, needs time ! -
for the first part:
I leave the script regrading this part as is !
why ?
when the download/the script is aborted there might be a somehow damaged nightly in ~/.update
what will happen, when the user forgot about it and reboots ?
I know the update installer does a checksum, but - currently - I don't know what he does afterwards.
In a best case he denies the update and cleans ~/.update.
But, *I* can't relay on such assumption and therefore I clean ~/.update explicit.
feeling more on a safer side !