Script 'game-add': slight changes.
This commit is contained in:
parent
b043f11f14
commit
86eb9c922d
4
game-add
4
game-add
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user