Commit 60c2ea2
fix: extract retry logic into function for BusyBox ash compatibility
BusyBox ash does not support the 'local' keyword outside of
functions. The previous implementation used 'local pending_status'
directly in the main loop, which caused ash to silently crash.
Move the retry logic into a retry_pending_report() function
defined before the main loop, where 'local' is valid.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 261dffe commit 60c2ea2
1 file changed
Lines changed: 14 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
987 | 987 | | |
988 | 988 | | |
989 | 989 | | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
990 | 1003 | | |
991 | 1004 | | |
992 | 1005 | | |
| |||
1001 | 1014 | | |
1002 | 1015 | | |
1003 | 1016 | | |
1004 | | - | |
1005 | | - | |
1006 | | - | |
1007 | | - | |
1008 | | - | |
1009 | | - | |
1010 | | - | |
1011 | | - | |
1012 | | - | |
| 1017 | + | |
1013 | 1018 | | |
1014 | 1019 | | |
1015 | 1020 | | |
| |||
0 commit comments