mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
fix NIX_SSL_CERT_FILE handling
This commit is contained in:
parent
d1bf45b1bf
commit
c2998e750d
1 changed files with 8 additions and 8 deletions
16
direnvrc
16
direnvrc
|
|
@ -13,14 +13,6 @@ _nix_import_env() {
|
||||||
eval "$env"
|
eval "$env"
|
||||||
|
|
||||||
# `nix-shell --pure` sets invalid ssl certificate paths
|
# `nix-shell --pure` sets invalid ssl certificate paths
|
||||||
if [[ "${NIX_SSL_CERT_FILE:-}" = /no-cert-file.crt ]]; then
|
|
||||||
if [[ $1 == __UNSET__ ]]; then
|
|
||||||
unset NIX_SSL_CERT_FILE
|
|
||||||
else
|
|
||||||
export NIX_SSL_CERT_FILE=${impure_ssl_cert_file}
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ "${SSL_CERT_FILE:-}" = /no-cert-file.crt ]]; then
|
if [[ "${SSL_CERT_FILE:-}" = /no-cert-file.crt ]]; then
|
||||||
if [[ $impure_ssl_cert_file == __UNSET__ ]]; then
|
if [[ $impure_ssl_cert_file == __UNSET__ ]]; then
|
||||||
unset SSL_CERT_FILE
|
unset SSL_CERT_FILE
|
||||||
|
|
@ -29,6 +21,14 @@ _nix_import_env() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "${NIX_SSL_CERT_FILE:-}" = /no-cert-file.crt ]]; then
|
||||||
|
if [[ $impure_nix_ssl_cert_file == __UNSET__ ]]; then
|
||||||
|
unset NIX_SSL_CERT_FILE
|
||||||
|
else
|
||||||
|
export NIX_SSL_CERT_FILE=${impure_ssl_cert_file}
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
export PATH=$PATH:$path_backup TERM=$term_backup
|
export PATH=$PATH:$path_backup TERM=$term_backup
|
||||||
if [[ -n ${tmp_backup+x} ]]; then
|
if [[ -n ${tmp_backup+x} ]]; then
|
||||||
export TMPDIR=${tmp_backup}
|
export TMPDIR=${tmp_backup}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue