Skip to content

Commit 2d99424

Browse files
fix(install): redirect stdin from /dev/tty for curl pipe support
1 parent 79ffc62 commit 2d99424

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

public/install.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,20 @@ main() {
407407
START_NOW=true
408408
COMPOSE_CMD="docker compose"
409409
OS_TYPE=""
410+
411+
# Check if we have a terminal for interactive input
412+
# This is needed when running via: curl ... | bash
413+
if [[ ! -t 0 ]]; then
414+
if [[ -e /dev/tty ]]; then
415+
exec < /dev/tty
416+
else
417+
echo -e "${RED}[✗]${NC} No terminal available for interactive input."
418+
echo " Please download and run the script manually:"
419+
echo " curl -fsSL https://clawhalla.xyz/install.sh -o install.sh"
420+
echo " bash install.sh"
421+
exit 1
422+
fi
423+
fi
410424

411425
# Run installer
412426
show_banner

0 commit comments

Comments
 (0)