]> git.rm.cloudns.org Git - xonotic/xonotic.git/commit
rsync: improve robustness of scripts, fix non-interactive mode
authorbones_was_here <bones_was_here@xonotic.au>
Mon, 17 Mar 2025 23:05:33 +0000 (09:05 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Thu, 20 Mar 2025 19:59:47 +0000 (05:59 +1000)
commit48fe84c56e931b03bf8afdcf2270986e55efc5e8
treea630e86802f63330997957b4516fa05373f8614f
parent5224935a94349ff60541c8d6c016973bc00b7e04
rsync: improve robustness of scripts, fix non-interactive mode

POSIX shell:
- In non-interactive mode an infinite loop occurred unless the --yes
  argument was passed.
- `which` is a non-standard program, `command -v` is a POSIX standard
  shell builtin.
- `exec` prevents potential glitches when the script is updated by rsync
  while still running.

Windows batch:
- Variable assignments persisted after batch exit, potentially
  interfering with other batch execution.
- If copying failed the window closed before the error could be read.
misc/tools/rsync-updater/update-to-autobuild.bat
misc/tools/rsync-updater/update-to-autobuild.sh
misc/tools/rsync-updater/update-to-release.bat