Fix interactive prompt when piped via curl | bash

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ronaldo Dias 2026-06-05 12:01:16 -03:00
parent 24c27194d4
commit fa059fd060

View file

@ -6,7 +6,7 @@ INSTALL_DIR="${HOME}/src/chamado-health"
CONFIG_FILE="${HOME}/.config/chamado-health"
if [[ -z "${HEALTHCHECK_URL:-}" ]]; then
read -rp "HEALTHCHECK_URL: " HEALTHCHECK_URL
read -rp "HEALTHCHECK_URL: " HEALTHCHECK_URL </dev/tty
fi
if [[ -d "${INSTALL_DIR}/.git" ]]; then