Commit 42c609b
Alex J Lennon
fix: Prevent cleanup messages when showing help or usage
- Add SHOW_HELP and LIST_PARTITIONS_ONLY flags to track display modes
- Modified cleanup() function to skip cleanup messages for help/usage scenarios
- Set appropriate flags in usage() function and error conditions
- Cleanup messages now only appear during actual WIC image processing
Fixes cases where 'Cleaning up...' appeared when running:
- ./wic-editor.sh (no arguments)
- ./wic-editor.sh -h (help)
- ./wic-editor.sh -i image.wic -p list (partition listing)
- Error conditions that show usage
Improves user experience by keeping help output clean and focused.1 parent 71eef1b commit 42c609b
1 file changed
+312
-33
lines changed
0 commit comments