From 409d32127da4bd66c12fdb9259c2cc95bd63d270 Mon Sep 17 00:00:00 2001 From: cyph3rasi Date: Sat, 7 Mar 2026 17:17:26 -0800 Subject: [PATCH] Fix uninstall confirmation prompt --- docker/uninstall.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docker/uninstall.sh b/docker/uninstall.sh index 94da94b..0a4a779 100644 --- a/docker/uninstall.sh +++ b/docker/uninstall.sh @@ -30,8 +30,14 @@ confirm_uninstall() { echo " - Synapsis images pulled from GHCR/local cache" echo " - ${INSTALL_DIR}" echo "" - printf "Type DELETE to continue: " - read -r confirmation + if [ -r /dev/tty ]; then + printf "Type DELETE to continue: " > /dev/tty + read -r confirmation < /dev/tty + else + echo "❌ Interactive confirmation requires a TTY." >&2 + echo " Re-run with FORCE=1 if you want to skip the prompt." >&2 + exit 1 + fi if [ "$confirmation" != "DELETE" ]; then echo "Aborted."