set s_score to 0 if not exists

This commit is contained in:
olli 2024-02-08 14:08:46 +01:00
parent fd813763c2
commit 6e80910b41

View File

@ -1,8 +1,9 @@
function score {
[ -z "${s_score}" ] && s_score=0
#s_score=$((s_score${1}))
g_calc "${s_score} + ${1}"
s_score=${g_calc_result}
#echo " SCORE: s_score=${s_score} ($1) $2"
s_score_hist="${s_score_hist}
s_score=${s_score} (${1}) ${2}"
s_score=${s_score} (${1}) ${2}"
}