Commit 7ac67bf
committed
Simplify fix: use rm before echo + chmod
The pipe-based `echo | install /dev/stdin` approach doesn't work
reliably on macOS (piping to /dev/stdin fails on Darwin).
Simply removing the file first achieves the same result: rm succeeds
on files owned by other users (only needs directory write permission),
then echo + chmod work on the newly created file we own.
See: nix-community/nix-direnv#647 (comment)
Assisted-By: claude-opus-4-5-20251101 via Claude Code1 parent 5fb104b commit 7ac67bf
1 file changed
+6
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
221 | 219 | | |
222 | 220 | | |
223 | 221 | | |
| |||
0 commit comments