Skip to content

Use POSIX shell for build.sh script#263

Merged
EpsilonKu merged 1 commit intonvim-pack:masterfrom
folliehiyuki:use-sh
Apr 28, 2025
Merged

Use POSIX shell for build.sh script#263
EpsilonKu merged 1 commit intonvim-pack:masterfrom
folliehiyuki:use-sh

Conversation

@folliehiyuki
Copy link
Copy Markdown
Contributor

/bin/bash doesn't exist in some niche Linux OSs like Guix or NixOS, but /bin/sh does. This PR updates the build script to use POSIX shell syntax by replacing == with =. I also added -f flag for all cp commands, so the script can be invoked without fail.

@EpsilonKu
Copy link
Copy Markdown
Member

I used to use /bin/env bash on Nix OS. Does /bin/sh works in windows?

@folliehiyuki
Copy link
Copy Markdown
Contributor Author

Windows doesn't provide either sh or bash in the first place. I suppose it works in WSL as it's literally a Linux sandbox. To my knowledge, /bin/sh is a standard across UNIX OSs (that's why even NixOS provides it).

@EpsilonKu
Copy link
Copy Markdown
Member

Alr, I asked gpt. I hope it won't cause any issues

@EpsilonKu EpsilonKu merged commit 197150c into nvim-pack:master Apr 28, 2025
3 checks passed
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.

2 participants