Skip to content

feat: shell portability fixes and bun lockfile#2114

Open
Skippy-the-Magnificent-one wants to merge 1 commit into
danielmiessler:mainfrom
rodaddy:feature/rico-local-mods
Open

feat: shell portability fixes and bun lockfile#2114
Skippy-the-Magnificent-one wants to merge 1 commit into
danielmiessler:mainfrom
rodaddy:feature/rico-local-mods

Conversation

@Skippy-the-Magnificent-one
Copy link
Copy Markdown

Changes

  • Shebangs: #!/bin/bash#!/usr/bin/env bash across shell scripts for portability (nix, macOS, non-standard bash paths)
    • scripts/installer/install.sh
    • internal/plugins/template/Examples/remote-security-report.sh
    • internal/plugins/template/Examples/security-report.sh
    • internal/plugins/template/Examples/track_packages.sh
  • web: Added bun.lock for bun users (bun doesn't use pnpm-lock.yaml)
  • web: Removed pnpm-lock.yaml (redundant with package-lock.json already in repo)
  • docs: Removed empty docs/voices/README.md

Why

The #!/bin/bash shebang assumes bash lives at /bin/bash, which isn't true on NixOS, some BSDs, or custom installs. #!/usr/bin/env bash is the portable standard.

The web directory now has both package-lock.json (npm) and pnpm-lock.yaml -- having a bun.lock as well supports all three package managers. Since pnpm-lock.yaml is redundant with the existing npm lockfile, this swaps it for bun support.

- shebangs: #!/bin/bash -> #!/usr/bin/env bash across shell scripts
- web: move pnpm.overrides to top-level overrides (bun compat)
- web: replace pnpm-lock.yaml with bun.lock
- docs: remove empty voices README
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant