From 424a6ced004d17390b5ce84d2a67daf1337941fc Mon Sep 17 00:00:00 2001 From: KeiSei84 <2206745@gmail.com> Date: Tue, 26 May 2026 22:03:12 +0800 Subject: [PATCH] fix(bootstrap): run install via 'bash ./install.sh' (defensive against gh api 644) --- bootstrap.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index 39a464c..a2802df 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -177,9 +177,14 @@ fi log "checkout: $KIT_DIR" # --- 5. run install ------------------------------------------------------ -log "running ./install.sh --profile=$PROFILE $YES_FLAG ${EXTRA_FLAGS[*]:-}" +log "running install.sh --profile=$PROFILE $YES_FLAG ${EXTRA_FLAGS[*]:-}" cd "$KIT_DIR" -./install.sh --profile="$PROFILE" $YES_FLAG "${EXTRA_FLAGS[@]:+${EXTRA_FLAGS[@]}}" +# Defensive: invoke via `bash` not `./install.sh` because GitHub's contents +# API does NOT preserve the executable bit on `gh api -X PUT` updates +# (only the git Data API does). Older clones may have install.sh with +# mode 644 even though the source repo has it 755. `bash ` works +# regardless of file mode. Verified incident 2026-05-26 prod-curl test. +bash ./install.sh --profile="$PROFILE" $YES_FLAG "${EXTRA_FLAGS[@]:+${EXTRA_FLAGS[@]}}" # --- 6. post-install verification ---------------------------------------- KEI_BIN="$HOME/.claude/agents/_primitives/_rust/target/release"