diff options
author | Graham Christensen <graham@grahamc.com> | 2018-05-30T13·35-0400 |
---|---|---|
committer | Graham Christensen <graham@grahamc.com> | 2018-05-30T13·35-0400 |
commit | 6ba1726eeb58cd8e7d69e2a090346f26fdf634a5 (patch) | |
tree | 86df931088c2b5a19a8f9fa4ca635c220bcad864 /scripts | |
parent | d459d3307c7b1b10f6489ed048fff192e7834928 (diff) |
install-multi-user: support 'set -u' runs, closes #2193
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/install-multi-user.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install-multi-user.sh b/scripts/install-multi-user.sh index b4eec2fe94cd..6ee8dd48582e 100644 --- a/scripts/install-multi-user.sh +++ b/scripts/install-multi-user.sh @@ -727,7 +727,7 @@ setup_default_profile() { _sudo "to installing a bootstrapping Nix in to the default Profile" \ HOME="$ROOT_HOME" "$NIX_INSTALLED_NIX/bin/nix-env" -i "$NIX_INSTALLED_NIX" - if [ -z "$NIX_SSL_CERT_FILE" ] || ! [ -f "$NIX_SSL_CERT_FILE" ]; then + if [ -z "${NIX_SSL_CERT_FILE:-}" ] || ! [ -f "${NIX_SSL_CERT_FILE:-}" ]; then _sudo "to installing a bootstrapping SSL certificate just for Nix in to the default Profile" \ HOME="$ROOT_HOME" "$NIX_INSTALLED_NIX/bin/nix-env" -i "$NIX_INSTALLED_CACERT" export NIX_SSL_CERT_FILE=/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt |