From b41b7d7420b32314f7f3d1ccc4ba46d7efcff345 Mon Sep 17 00:00:00 2001 From: Evan Hosinski Date: Thu, 22 Jan 2026 11:49:45 -0500 Subject: [PATCH] Updated STDIN The script tried to read from stdin wihch is already consumed from the pipe. Altered to read from the TTY not STDIN --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 47008c3..054743f 100644 --- a/install.sh +++ b/install.sh @@ -125,7 +125,7 @@ docker logout "$REGISTRY" >/dev/null 2>&1 || true REG_USER="krkn-registry" -read -rsp "Registry access token: " REG_PASS +read -rsp "Registry access token: " REG_PASS < /dev/tty echo echo "$REG_PASS" | docker login "$REGISTRY" -u "$REG_USER" --password-stdin || { @@ -137,14 +137,14 @@ echo "$REG_PASS" | docker login "$REGISTRY" -u "$REG_USER" --password-stdin || { # Prompt config # ----------------------------- echo -read -rp "Orchestrator address (e.g. https://krkn.example.com): " ORCH_ADDR +read -rp "Orchestrator address (e.g. https://krkn.example.com): " ORCH_ADDR < /dev/tty if [ -z "$ORCH_ADDR" ]; then err "Orchestrator address is required." exit 1 fi DEFAULT_WORKER_ID="$(hostname)" -read -rp "Worker ID [${DEFAULT_WORKER_ID}]: " WORKER_ID +read -rp "Worker ID [${DEFAULT_WORKER_ID}]: " WORKER_ID < /dev/tty WORKER_ID="${WORKER_ID:-$DEFAULT_WORKER_ID}" # -----------------------------