Skip to content

Commit

Permalink
Clear break flag after break (fixes #19)
Browse files Browse the repository at this point in the history
Break flag was not cleared after break of main loop, leading to
continuous breaks and hanging of the program.
  • Loading branch information
ckardaris committed Apr 26, 2022
1 parent 0a6003a commit afb2d18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ loop() {
local char key
while true
do
[[ "$break_flag" -eq 1 ]] && break
[[ "$break_flag" -eq 1 ]] && break_flag=0 && break
[[ "${#images[@]}" -eq 0 ]] && exit_flag=1
[[ "$exit_flag" -eq 1 ]] && break
key=
Expand Down

0 comments on commit afb2d18

Please sign in to comment.