There is no issue with script for downloading, if there is any latest version of 13.0 nightly build while booting up, it will download and update after the reboot.
only issue i see is download progress bar not show on the screen during the download
command used in the script
------
curl -# -o /storage/.update/"$LATEST_FILE" "$URL$LATEST_FILE"