rsync: improve status messages, fix target selection
authorbones_was_here <bones_was_here@xonotic.au>
Wed, 26 Feb 2025 01:56:50 +0000 (11:56 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Sat, 22 Mar 2025 23:15:24 +0000 (09:15 +1000)
commit6a6129a52509ae5dfd030fc06756d83db0c52f0d
treec2b282eb93f385a423ab6183bf96d1cf7ec31d9d
parent407c845a295e6d9ff797ad670c1bd5c8ad727310
rsync: improve status messages, fix target selection

Fixes printing the wrong message "release" when updating from an
autobuild zip. That code can't distinguish between rsync and release
reliably (because an autobuild zip has the release-style pk3 names) and
doesn't need to.

Fixes the "secret trick" potentially clobbering the filesystem:
downloading update-to-autobuild.sh separately to /home/user/Downloads/
and running from there it downloaded Xonotic to ~/Downloads/Xonotic/,
but if run again it detected that new Xonotic/ directory and set the
rsync target to ../../.. (ie /). That fallback target is no longer
supported as it's a bit odd to download a complete copy via the updater,
but it can still be done by creating the script parent directories.

Moves the main "Do you want to continue" after other messages so the
user is better informed about what they're confirming.
misc/tools/rsync-updater/README.txt
misc/tools/rsync-updater/update-to-autobuild.sh