set s_score to 0 if not exists
This commit is contained in:
parent
fd813763c2
commit
6e80910b41
@ -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}"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user