Commit 5af55f7
committed
fix(scripts): resolve exit code 1 failures in documentation cleanup
CHANGES
- Add division by zero protection for percentage calculations
- Implement bc command fallback using integer arithmetic
- Add error handling for file counting and removal operations
IMPACT
- Prevents script exit on arithmetic errors and missing bc command
- Enables processing to continue when individual file operations fail
TECHNICAL NOTES
- Added conditional checks before percentage calculations
- Enhanced error handling while maintaining strict pipefail behavior1 parent 2538072 commit 5af55f7
1 file changed
+19
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
147 | | - | |
148 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
149 | 152 | | |
150 | 153 | | |
151 | 154 | | |
| |||
154 | 157 | | |
155 | 158 | | |
156 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
157 | 171 | | |
158 | 172 | | |
159 | 173 | | |
160 | 174 | | |
161 | | - | |
| 175 | + | |
162 | 176 | | |
163 | 177 | | |
164 | 178 | | |
| |||
0 commit comments