Script 'game-add': slight changes.

This commit is contained in:
vonavi 2014-09-06 14:12:25 +04:00
parent b043f11f14
commit 86eb9c922d

View File

@ -68,7 +68,7 @@ function game_get_players {
players+=("$name") players+=("$name")
[[ $lichess == $wt_lichess ]] && white=$name [[ $lichess == $wt_lichess ]] && white=$name
[[ $lichess == $bk_lichess ]] && black=$name [[ $lichess == $bk_lichess ]] && black=$name
: $((counter += 1)) ((counter += 1))
done done
[[ -z $white ]] && fix_white_player [[ -z $white ]] && fix_white_player
[[ -z $black ]] && fix_black_player [[ -z $black ]] && fix_black_player
@ -120,7 +120,7 @@ function choose_player {
if (( $number < 1 || $number > ${#players[@]} )); then if (( $number < 1 || $number > ${#players[@]} )); then
die "Incorrect player number." die "Incorrect player number."
fi fi
: $((number += -1)) ((number += -1))
} }
function game_add_to_repo { function game_add_to_repo {