1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-05 03:19:42 +00:00

fix: improve dry-run mode and error handling

- Export MOLE_DRY_RUN env var for subprocess visibility
- Add || true to grep commands to prevent pipeline failures
- Add dry-run test for clean_orphaned_system_services
- Simplify clean_local_snapshots tests
This commit is contained in:
Tw93
2026-01-23 18:05:09 +08:00
parent eb86a0ae37
commit d7a0d480bc
5 changed files with 59 additions and 71 deletions

View File

@@ -1069,6 +1069,7 @@ main() {
;;
"--dry-run" | "-n")
DRY_RUN=true
export MOLE_DRY_RUN=1
;;
"--whitelist")
source "$SCRIPT_DIR/../lib/manage/whitelist.sh"