Skip to content

Commit 9c6b0b9

Browse files
beadonclaude
andcommitted
fix(ci): install full shellspec directory tree, not just the binary
ShellSpec requires its lib/ directory alongside the shellspec binary. Copying only the binary to /usr/local/bin breaks the relative path lookup for shellspec.sh. Install the full tree to /usr/local/lib/shellspec and symlink the binary. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent d8cad92 commit 9c6b0b9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ jobs:
4444
curl -fsSL -o /tmp/shellspec-dist.tar.gz "$SHELLSPEC_URL"
4545
echo "${SHELLSPEC_SHA256} /tmp/shellspec-dist.tar.gz" | sha256sum --check --strict
4646
tar -xzf /tmp/shellspec-dist.tar.gz -C /tmp
47-
sudo install -m 755 /tmp/shellspec/shellspec /usr/local/bin/shellspec
47+
sudo cp -r /tmp/shellspec /usr/local/lib/shellspec
48+
sudo ln -sf /usr/local/lib/shellspec/shellspec /usr/local/bin/shellspec
4849
4950
- name: Run unit tests
5051
run: shellspec --shell busybox spec/unit/
@@ -67,7 +68,8 @@ jobs:
6768
curl -fsSL -o /tmp/shellspec-dist.tar.gz "$SHELLSPEC_URL"
6869
echo "${SHELLSPEC_SHA256} /tmp/shellspec-dist.tar.gz" | sha256sum --check --strict
6970
tar -xzf /tmp/shellspec-dist.tar.gz -C /tmp
70-
sudo install -m 755 /tmp/shellspec/shellspec /usr/local/bin/shellspec
71+
sudo cp -r /tmp/shellspec /usr/local/lib/shellspec
72+
sudo ln -sf /usr/local/lib/shellspec/shellspec /usr/local/bin/shellspec
7173
7274
- name: Build OpenWrt test container
7375
# Pin by digest to prevent tag mutation attacks.

0 commit comments

Comments
 (0)