Repository navigation
Conversation
rossoctl#720) The SH_OIDC_CLIENT_SECRET and SH_IDENTITY_PROVIDER cases added in rossoctl#701 used `sed -i '…' FILE`. BSD sed (macOS) reads the next word after -i as the backup suffix, so the test stopped there with "invalid command code". Use the form the file's other sed -i lines already use: `sed -i.bak '…' FILE && rm -f FILE.bak`. Test-only; setup-vm.sh is unchanged. On macOS with bash 5: 104 ok, 0 not ok. Refs rossoctl#720. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Rong Chang <[email protected]>
90eaa72 to
084f3ab
Compare
clawgenti
left a comment
There was a problem hiding this comment.
Summary
All checks pass. Ready for human review.
Both changed lines now use the sed -i.bak … && rm -f ….bak form that the file's other sed -i lines already use. On head, all 8 sed -i uses in deploy/vm/tests/setup-vm.test.sh are -i.bak (none are bare), and bash -n passes.
Author: webchang (MEMBER — maintainer)
Areas reviewed: Shell (test script)
Agent/IDE config (.claude/.vscode): none
Commits: 1 commit, all signed-off: yes
CI status: passing
Generated by RepoMan github-pr-review@235a7f7 (https://github.com/rossoctl/agent-skills/blob/235a7f7620139ee3e4ab0872b8439591fe52e8c1/skills/github-pr-review/SKILL.md).
|
Closing as superseded. The same two lines were fixed on #720 stays open for its two bash 3.2 stops: Assisted-By: Claude Code |
Fixes the first of the three stops in #720.
The
SH_OIDC_CLIENT_SECRETandSH_IDENTITY_PROVIDERcases from #701 (294054a) usedsed -i '…' FILE. On macOS, BSD sed takes the next word after-ias the backup suffix, sodeploy/vm/tests/setup-vm.test.shstopped there withinvalid command code.This PR uses the form the file's other
sed -ilines already use:sed -i.bak '…' FILE && rm -f FILE.bak. It changes two lines, both in the test;setup-vm.shis unchanged.Tested:
bash deploy/vm/tests/setup-vm.test.shon macOS with bash 5: 104ok, 0not ok. The two bash 3.2 stops in #720 are separate, and wait for the maintainers' choice of approach.Assisted-By: Claude Code