fix resume

This commit is contained in:
Mylloon 2023-03-31 16:56:15 +02:00
parent 138475bca1
commit b79d8a074c
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -40,11 +40,11 @@ pike run_many_games.pike -f ${PRG_2} -s ${PRG_1} -o ${GAME_DIR} -n ${NB_GAMES_PE
echo " ================" echo " ================"
} > ${GAME_DIR}/resume.txt } > ${GAME_DIR}/resume.txt
STR_WIN1=$(printf "%s\n" ${PRG_1} win) STR_WIN1=$(printf "%s win" ${PRG_1})
NB_WIN1=$(grep -c "${STR_WIN1}" ${GAME_DIR}/scores.txt) NB_WIN1=$(grep -c "${STR_WIN1}" ${GAME_DIR}/scores.txt)
echo " ${PRG_1} is ${NB_WIN1}" >> ${GAME_DIR}/resume.txt echo " ${PRG_1} is ${NB_WIN1}" >> ${GAME_DIR}/resume.txt
STR_WIN2=$(printf "%s\n" ${PRG_2} win) STR_WIN2=$(printf "%s win" ${PRG_2})
NB_WIN2=$(grep -c "${STR_WIN2}" ${GAME_DIR}/scores.txt) NB_WIN2=$(grep -c "${STR_WIN2}" ${GAME_DIR}/scores.txt)
{ {
echo " ${PRG_2} is ${NB_WIN2}" echo " ${PRG_2} is ${NB_WIN2}"