diff options
author | Iavael <iavael@users.noreply.github.com> | 2018-01-15 00:43:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-15 00:43:39 +0300 |
commit | ebc42f8b5944e6669362e7d13856f126b8e075d7 (patch) | |
tree | ccc55700d93db4888a2b597a6047d5c970de802a | |
parent | 74f75c855837bce7f48491e9ce8ac03794e5b40d (diff) |
Fix manpath detection
Checking for MANPATH without quotes always returns true, so that it breaks bash-completion for man pages on modern systems without MANPATH environment variable.
-rw-r--r-- | scripts/nix-profile.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/nix-profile.sh.in b/scripts/nix-profile.sh.in index 450d683c7..a5f52274f 100644 --- a/scripts/nix-profile.sh.in +++ b/scripts/nix-profile.sh.in @@ -75,7 +75,7 @@ if [ -n "$HOME" ] && [ -n "$USER" ]; then export NIX_SSL_CERT_FILE="$NIX_LINK/etc/ca-bundle.crt" fi - if [ -n ${MANPATH} ]; then + if [ -n "${MANPATH}" ]; then export MANPATH="$NIX_LINK/share/man:$MANPATH" fi |