File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ use_nix() {
47
47
local tmp_backup=$TMPDIR
48
48
fi
49
49
50
- local impure_ssl_cert_file=${SSL_CERT_FILE:-}
51
- local impure_nix_ssl_cert_file=${NIX_SSL_CERT_FILE:-}
50
+ local impure_ssl_cert_file=${SSL_CERT_FILE:-__UNSET__ }
51
+ local impure_nix_ssl_cert_file=${NIX_SSL_CERT_FILE:-__UNSET__ }
52
52
53
53
log_status eval "$cache"
54
54
read -r cache_content < "$cache"
@@ -62,17 +62,17 @@ use_nix() {
62
62
63
63
# `nix-shell --pure` sets invalid ssl certificate paths
64
64
if [[ "${SSL_CERT_FILE:-}" = /no-cert-file.crt ]]; then
65
- if [[ -n ${impure_ssl_cert_file+x} ]]; then
66
- export SSL_CERT_FILE=${impure_ssl_cert_file}
67
- else
65
+ if [[ ${impure_ssl_cert_file} == __UNSET__ ]]; then
68
66
unset SSL_CERT_FILE
67
+ else
68
+ export SSL_CERT_FILE=${impure_ssl_cert_file}
69
69
fi
70
70
fi
71
71
if [[ "${NIX_SSL_CERT_FILE:-}" = /no-cert-file.crt ]]; then
72
- if [[ -n ${impure_nix_ssl_cert_file+x} ]]; then
73
- export NIX_SSL_CERT_FILE=${impure_nix_ssl_cert_file}
74
- else
72
+ if [[ ${impure_nix_ssl_cert_file} == __UNSET__ ]]; then
75
73
unset NIX_SSL_CERT_FILE
74
+ else
75
+ export NIX_SSL_CERT_FILE=${impure_nix_ssl_cert_file}
76
76
fi
77
77
fi
78
78
You can’t perform that action at this time.
0 commit comments