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,4 +1,5 @@
function score {
[ -z "${s_score}" ] && s_score=0
#s_score=$((s_score${1}))
g_calc "${s_score} + ${1}"
s_score=${g_calc_result}