mirror of
https://git.sr.ht/~bryan_bennett/flake_env
synced 2025-12-16 22:51:24 +01:00
Pass arguments to flake_env in the correct order
This prevents flake_env from deleting the directory containing the .envrc file if the flake specifier is ".". In7759d2a, the order of the arguments was swapped: In bin/flake_env.re - let flake_specifier = argv[1]; - let layout_directory = argv[2]; In lib/flake_env__util.re + let layout_directory = argv[1]; + let flake_specifier = argv[2]; but the direnvrc was not updated to match. Fixes:7759d2ac6a
This commit is contained in:
parent
a53412a1f9
commit
33d91a5af4
1 changed files with 1 additions and 1 deletions
2
direnvrc
2
direnvrc
|
|
@ -41,7 +41,7 @@ use_flake_env() {
|
|||
local ld=$(direnv_layout_dir)
|
||||
export direnv
|
||||
|
||||
eval "$(@flake_env@ "${1:-"."}" "$ld")"
|
||||
eval "$(@flake_env@ "$ld" "${1:-"."}")"
|
||||
|
||||
export -n direnv
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue