Commit 471d727
committed
fix(update_xnt): unset exitbypass after command_stop.sh in fn_update_localbuild
When the Xonotic server is not running during check-update, fn_update_localbuild
starts it temporarily to read the version from the console log, then stops it.
exitbypass=1 is set before command_stop.sh to prevent core_exit.sh from running
mid-flow, but command_stop.sh does not unset exitbypass when skipping core_exit.sh.
This caused the leaked exitbypass to bypass core_exit.sh at the end of
command_check_update.sh, returning control to core_getopt.sh which then printed
"Command did not exit correctly" and exited with code 2.
Fix: unset exitbypass explicitly after command_stop.sh returns.1 parent 3926115 commit 471d727
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
0 commit comments