mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
useFlake(): fix sed invocation on legacy operating systems
macOS has `-i` but it insists on writing backup files.
This commit is contained in:
parent
a3d08b6c8f
commit
76f26b2692
1 changed files with 2 additions and 1 deletions
3
direnvrc
3
direnvrc
|
|
@ -152,7 +152,8 @@ use_flake() {
|
|||
|
||||
log_status renewed cache
|
||||
else
|
||||
sed -i "/eval \"\$shellHook\"/d" "$profile_rc"
|
||||
sed "/eval \"\$shellHook\"/d" "$profile_rc" > "${profile_rc}.tmp"
|
||||
mv "${profile_rc}.tmp" "${profile_rc}"
|
||||
log_status using cached dev shell
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue