Skip to content

Commit 3f21790

Browse files
groupskyclaude
andcommitted
test: the loop fixes the mode of /usr/local/bin before /update
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent aae5203 commit 3f21790

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎test/units/full-loop.sh‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,11 @@ if [ -n "$update_to" ]; then
309309
*) die "no release for $(uname -m)" ;;
310310
esac
311311
web="$out/web"
312+
# install.sh refuses a bin directory that group or others can write.
313+
# The runner image may have one; fix it, as an owner would.
314+
stat -c '%U %a' /usr/local/bin
315+
chown root:root /usr/local/bin
316+
chmod go-w /usr/local/bin
312317
# fake_release VERSION [BINARY]: the newest release on the fake GitHub.
313318
# With BINARY, also its files, made as the release workflow makes them.
314319
fake_release() {

0 commit comments

Comments
 (0)