fix evaluation of nix env

read seems to do weird stuff when reading from a file
This commit is contained in:
Jörg Thalheim 2019-10-21 14:45:42 +01:00
parent 292d43a005
commit 28854ee129
No known key found for this signature in database
GPG key ID: B3F5D81B0C6967C4

View file

@ -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}