@cocorograph/hub-agent 0.6.73 → 0.6.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scripts/install.sh +4 -1
package/package.json
CHANGED
package/scripts/install.sh
CHANGED
|
@@ -483,7 +483,10 @@ _install_node_lts_brew() {
|
|
|
483
483
|
# - 範囲超過(current 系等) → LTS にダウングレード
|
|
484
484
|
ensure_node_version() {
|
|
485
485
|
local v
|
|
486
|
-
|
|
486
|
+
# node 皆無のクリーン環境では `node --version` が exit 127。set -euo pipefail 下
|
|
487
|
+
# では pipefail がこれを拾ってスクリプトごと死ぬため、`|| v=""` で必ず吸収する
|
|
488
|
+
# (macOS テスト機には既に node があり露見しなかった潜在バグ。WSL クリーン Ubuntu で発覚)。
|
|
489
|
+
v=$(node --version 2>/dev/null | sed 's/^v//' | cut -d. -f1) || v=""
|
|
487
490
|
if [[ -z "$v" ]]; then
|
|
488
491
|
color_step "node が未インストール → $NODE_DEFAULT_BREW_FORMULA (Active LTS) を install"
|
|
489
492
|
if [[ "$(uname)" == "Darwin" ]]; then
|