From 3eb1122f2c3556ccb468394e67ac0a701881677e 2020-07-06 16:08:57 From: Branko Majic Date: 2020-07-06 16:08:57 Subject: [PATCH] Noticket: [factorio_manager.sh] Use arithmetic compund command instead of let built-in command. --- diff --git a/games/factorio_manager.sh b/games/factorio_manager.sh index 4a6d12e4fbe9a779bb0e0a7e0892eb44762697cd..e4b36b751d0160b1215157ebd2426b906b9be8d5 100755 --- a/games/factorio_manager.sh +++ b/games/factorio_manager.sh @@ -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