From b6bcda117b21d8099d506bc659aa8e585c92241d Mon Sep 17 00:00:00 2001 From: buildplan Date: Tue, 14 Oct 2025 21:59:08 +0100 Subject: [PATCH] --quiet mode check in provider cleanup --- du_setup.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/du_setup.sh b/du_setup.sh index 461a49c..8d58d52 100644 --- a/du_setup.sh +++ b/du_setup.sh @@ -415,6 +415,13 @@ detect_environment() { cleanup_provider_packages() { print_section "Provider Package Cleanup (Optional)" + # --quiet mode check + if [[ "$VERBOSE" == "false" ]]; then + print_warning "Provider cleanup cannot be run in --quiet mode due to its interactive nature. Skipping." + log "Provider cleanup skipped due to --quiet mode." + return 0 + fi + # Validate required variables if [[ -z "${LOG_FILE:-}" ]]; then LOG_FILE="/var/log/du_setup_$(date +%Y%m%d_%H%M%S).log"