mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
fix evaluation of nix env
read seems to do weird stuff when reading from a file
This commit is contained in:
parent
292d43a005
commit
28854ee129
1 changed files with 2 additions and 4 deletions
6
direnvrc
6
direnvrc
|
|
@ -38,10 +38,8 @@ use_nix() {
|
|||
local tmp_backup=$TMPDIR
|
||||
fi
|
||||
|
||||
log_status eval $cache
|
||||
local cache_content
|
||||
read cache_content < "$cache"
|
||||
eval "$cache_content"
|
||||
log_status eval "$cache"
|
||||
eval < "$cache"
|
||||
export PATH=$PATH:$path_backup TERM=$term_backup TMPDIR=$tmp_backup
|
||||
if [ -z ${tmp_backup+x} ]; then
|
||||
export TMPDIR=${tmp_backup}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue