Skip to content

Commit eea58d2

Browse files
meleumeleu
andauthored
fix(learn): prevent errexit on '((completed++))' (#601)
Co-authored-by: meleu <meleu@noreply.github.com>
1 parent d1ab988 commit eea58d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/learn.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function bashunit::learn::show_progress() {
127127
for i in $(seq 1 $total_lessons); do
128128
if bashunit::learn::is_completed "lesson_$i"; then
129129
echo " ${_BASHUNIT_COLOR_PASSED}${_BASHUNIT_COLOR_DEFAULT} Lesson $i completed"
130-
((completed++))
130+
((completed++)) || true
131131
else
132132
echo " ${_BASHUNIT_COLOR_INCOMPLETE}${_BASHUNIT_COLOR_DEFAULT} Lesson $i"
133133
fi

0 commit comments

Comments
 (0)