Changeset - 3eb1122f2c35
[Not reviewed]
0 1 0
Branko Majic (branko) - 4 years ago 2020-07-06 16:08:57
branko@majic.rs
Noticket: [factorio_manager.sh] Use arithmetic compund command instead of let built-in command.
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
games/factorio_manager.sh
Show inline comments
 
@@ -843,7 +843,7 @@ function read_server_settings() {
 
                settings_value[$key]="$value"
 

	
 
                echo
 
                let current_question++
 
                (( current_question++ ))
 
            done
 
        fi
 
    done
 
@@ -1056,7 +1056,7 @@ function select_factorio_version() {
 
    echo
 

	
 
    for i in "${!game_versions_available[@]}"; do
 
        let i++
 
        (( i++ ))
 
        echo -n "  [$i] $(basename "${game_versions_available[$i-1]}")"
 

	
 
        # Highlight default version.
 
@@ -1214,7 +1214,7 @@ if [[ $command == set-game-dir ]]; then
 
    factorio_versions_found=0
 
    for candidate in "$game_installations_directory_target"/*; do
 
        if [[ -f $candidate/bin/x64/factorio ]]; then
 
            let factorio_versions_found++
 
            (( factorio_versions_found++ ))
 
        fi
 
    done
 

	
0 comments (0 inline, 0 general)