diff --git a/install_adventurelog.sh b/install_adventurelog.sh index b149f25..bd14ad0 100755 --- a/install_adventurelog.sh +++ b/install_adventurelog.sh @@ -782,6 +782,12 @@ main() { } # Script entry point -if [[ "${BASH_SOURCE[0]:-}" == "$0" ]] || [ -p /dev/stdin ]; then +# Allow interactive install even when piped +if [[ -t 1 ]]; then + # stdout is a terminal → likely interactive + exec < /dev/tty # reconnect stdin to terminal for user input main "$@" -fi \ No newline at end of file +else + echo "Error: This script needs an interactive terminal." >&2 + exit 1 +fi