Commit ff7c935
zfsbootmenu-core.sh: fix instant timed prompts
bin/zfsbootmenu cheats and passes a timeout of 0 seconds, which is an instant timeout / success. Protect that value and restrict infinite timeouts to negative numbers entirely.
Co-authored-by: Zach Dykstra <[email protected]>
Co-authored-by: Andrew J. Hesford <[email protected]>1 parent c3a2808 commit ff7c935
File tree
2 files changed
+5
-3
lines changed2 files changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1263 | 1263 | | |
1264 | 1264 | | |
1265 | 1265 | | |
1266 | | - | |
| 1266 | + | |
1267 | 1267 | | |
1268 | 1268 | | |
1269 | 1269 | | |
| |||
1281 | 1281 | | |
1282 | 1282 | | |
1283 | 1283 | | |
1284 | | - | |
| 1284 | + | |
1285 | 1285 | | |
1286 | 1286 | | |
| 1287 | + | |
| 1288 | + | |
1287 | 1289 | | |
1288 | 1290 | | |
1289 | 1291 | | |
| |||
0 commit comments