diff options
-rw-r--r-- | shell/hush.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c index eb70c9d9f..a2649d069 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -4571,7 +4571,7 @@ static int builtin_break(char **argv) | |||
4571 | depth_break_continue = UINT_MAX; | 4571 | depth_break_continue = UINT_MAX; |
4572 | } | 4572 | } |
4573 | } | 4573 | } |
4574 | if (depth_of_loop > depth_break_continue) | 4574 | if (depth_of_loop < depth_break_continue) |
4575 | depth_break_continue = depth_of_loop; | 4575 | depth_break_continue = depth_of_loop; |
4576 | return EXIT_SUCCESS; | 4576 | return EXIT_SUCCESS; |
4577 | } | 4577 | } |