From d67086ccd8b3e0db756edcf9eac6bca571607e38 Mon Sep 17 00:00:00 2001 From: amir-climy Date: Tue, 19 May 2026 19:54:40 +0800 Subject: [PATCH] fix(uninstall): remove interactive confirmation for --purge-data MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The read prompt reads EOF when invoked via curl pipe, causing an immediate abort. The --purge-data flag is explicit enough to serve as confirmation — no secondary prompt needed. Co-Authored-By: Claude Sonnet 4.6 --- manage-server/uninstall.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/manage-server/uninstall.sh b/manage-server/uninstall.sh index 032639a..f677ce3 100755 --- a/manage-server/uninstall.sh +++ b/manage-server/uninstall.sh @@ -48,8 +48,6 @@ podman rmi "$IMAGE" 2>/dev/null || docker rmi "$IMAGE" 2>/dev/null || true if [[ $PURGE -eq 1 ]]; then info "DESTRUCTIVE: removing manage server volumes..." info " this deletes: scan history, hosts, users, worker binaries" - read -r -p " Are you sure? Type 'yes' to confirm: " CONFIRM - [[ "$CONFIRM" == "yes" ]] || die "aborted" for vol in triton-manage-db-data triton-manage-bins; do podman volume rm -f "$vol" 2>/dev/null \ || docker volume rm -f "$vol" 2>/dev/null \