From 8cf81a0dfb167616abc6d903b55097806ae464ad Mon Sep 17 00:00:00 2001 From: "kenig.d" Date: Sun, 8 Feb 2026 23:49:41 +0100 Subject: [PATCH 1/2] [Fix] read user input from /dev/tty in installation prompt --- install.sh | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/install.sh b/install.sh index 14d5609..77dd3b9 100755 --- a/install.sh +++ b/install.sh @@ -147,13 +147,15 @@ main() { # Offer choices based on what's available if $has_docker && $has_node; then - echo -e "${BOLD}Choose installation method:${NC}" - echo " 1) npm install -g (recommended)" - echo " 2) Docker" - echo " 3) Git clone (development)" - echo "" - read -rp "Choice [1]: " choice - choice="${choice:-1}" + { + echo -e "${BOLD}Choose installation method:${NC}" + echo " 1) npm install -g (recommended)" + echo " 2) Docker" + echo " 3) Git clone (development)" + echo "" + read -rp "Choice [1]: " choice + choice="${choice:-1}" + } < /dev/tty case "$choice" in 1) install_npm ;; 2) install_docker ;; @@ -162,12 +164,14 @@ main() { esac elif $has_node; then - echo -e "${BOLD}Choose installation method:${NC}" - echo " 1) npm install -g (recommended)" - echo " 2) Git clone (development)" - echo "" - read -rp "Choice [1]: " choice - choice="${choice:-1}" + { + echo -e "${BOLD}Choose installation method:${NC}" + echo " 1) npm install -g (recommended)" + echo " 2) Git clone (development)" + echo "" + read -rp "Choice [1]: " choice + choice="${choice:-1}" + } < /dev/tty case "$choice" in 1) install_npm ;; 2) install_git ;; From 299c85e7bc974828c0a55380f33876e4debb86eb Mon Sep 17 00:00:00 2001 From: "kenig.d" Date: Sun, 8 Feb 2026 23:56:41 +0100 Subject: [PATCH 2/2] [Fix] lowercase repo name to fix invalide reference format --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 77dd3b9..8b49f28 100755 --- a/install.sh +++ b/install.sh @@ -6,7 +6,7 @@ set -euo pipefail # Usage: curl -fsSL https://raw.githubusercontent.com/TONresistor/teleton-agent/main/install.sh | bash # ────────────────────────────────────────────── -REPO="TONresistor/teleton-agent" +REPO="tonresistor/teleton-agent" DOCKER_IMAGE="ghcr.io/${REPO}:latest" NPM_PACKAGE="teleton" MIN_NODE_VERSION=20