Fix uninstall confirmation prompt

This commit is contained in:
cyph3rasi
2026-03-07 17:17:26 -08:00
parent 0a54a3229a
commit 409d32127d
+8 -2
View File
@@ -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."