From ccfbf5322ac1f5afbda8d82fd2b072a17bad5a6b Mon Sep 17 00:00:00 2001 From: Bruno Raoult Date: Thu, 7 Jan 2021 17:52:30 +0100 Subject: [PATCH] Revert last commit (bug) --- day16/ex1.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/day16/ex1.bash b/day16/ex1.bash index 8d1dd8a..270462d 100755 --- a/day16/ex1.bash +++ b/day16/ex1.bash @@ -20,7 +20,7 @@ while read -r line; do elif [[ $line != "" ]]; then if ((state == 2)); then for i in ${line//,/ }; do - [[ ! -v valid[$i] ]] && ((res++)) + [[ ! -v valid[$i] ]] && res=res+i done fi fi