Changeset - bad84d654ed1
[Not reviewed]
0 1 0
Branko Majic (branko) - 17 months ago 2024-06-23 20:53:23
branko@majic.rs
[factorio_manager.sh] Fixed loop interruption for the launch-loop command:

- Factorio has stopped returning non-zero value when stopped using
SIGINT (as of version 1.1.93).
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
games/factorio_manager.sh
Show inline comments
 
@@ -1603,6 +1603,9 @@ elif [[ $command == launch-loop ]]; then
 
        exit "$ERROR_CONFIGURATION"
 
    fi
 

	
 
    # Trap the interrupt signal in order to get out of the loop.
 
    trap exit INT
 

	
 
    # Launch instance
 
    if [[ -e $server_config ]]; then
 
        while "$factorio_bin" --config "$game_config" --start-server "$instance_directory/saves/default.zip"; do
0 comments (0 inline, 0 general)