Skip to content

Commit 91afc68

Browse files
barckcodeclaude
andcommitted
fix: use read directly as TTY test to suppress /dev/tty errors
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c005c2b commit 91afc68

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

web/public/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ install() {
7676
# Create install directory
7777
if [[ -d "$INSTALL_DIR" ]]; then
7878
warn "Directory '$INSTALL_DIR' already exists."
79-
if [[ -t 0 ]] || { [[ -e /dev/tty ]] && echo -n '' > /dev/tty 2>/dev/null; }; then
80-
read -rp "Overwrite configuration? [y/N]: " overwrite </dev/tty
79+
if read -rp "Overwrite configuration? [y/N]: " overwrite </dev/tty 2>/dev/null; then
80+
:
8181
else
8282
overwrite="y"
8383
info "No TTY available, proceeding with overwrite."

0 commit comments

Comments
 (0)