Commit 0683424
authored
🤖 fix: replace /bin/bash with /usr/bin/env bash for portability (#603)
Replace hardcoded `/bin/bash` shebangs with `/usr/bin/env bash` for
better portability across different systems, particularly NixOS where
`/bin/bash` does not exist.
## Changes
- **Makefile**: Update SHELL variable for non-Windows systems
- **docs/init-hooks.md**: Update example script shebangs (2 occurrences)
- **scripts/setup-macos-signing.sh**: Update shebang
- **vscode/scripts/create-icon.sh**: Update shebang
## Why
`/usr/bin/env bash` resolves bash from PATH, making scripts work on
systems where bash is not in `/bin` (e.g., NixOS installs bash in
`/nix/store/...`). This is a standard practice for portable shell
scripts.
_Generated with `mux`_1 parent 3df3beb commit 0683424
File tree
4 files changed
+9
-7
lines changed- docs
- scripts
- vscode/scripts
4 files changed
+9
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | | - | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments