Skip to content

Commit 76b2a36

Browse files
committed
fix(devcontainer): xlings 安装显式非交互(postCreate 无控制终端,/dev/tty 误判可读)
1 parent f165924 commit 76b2a36

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.devcontainer/postCreate.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ sudo apt-get update
66
sudo apt-get install -y ncurses-bin libtinfo6 libncursesw6 curl ca-certificates git
77

88
if ! command -v xlings >/dev/null 2>&1; then
9-
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s "v0.4.68"
9+
# postCreate 无控制终端:安装器探测 /dev/tty 会误判可读,必须显式声明非交互
10+
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh \
11+
| XLINGS_NON_INTERACTIVE=1 bash -s "v0.4.68"
1012
fi
1113

1214
export PATH="$HOME/.xlings/subos/current/bin:$PATH"

0 commit comments

Comments
 (0)