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:
@@ -1069,6 +1069,7 @@ main() {
|
||||
;;
|
||||
"--dry-run" | "-n")
|
||||
DRY_RUN=true
|
||||
export MOLE_DRY_RUN=1
|
||||
;;
|
||||
"--whitelist")
|
||||
source "$SCRIPT_DIR/../lib/manage/whitelist.sh"
|
||||
|
||||
Reference in New Issue
Block a user