aboutsummaryrefslogtreecommitdiff
path: root/scripts/nix-profile.sh.in
diff options
context:
space:
mode:
authorIavael <iavael@users.noreply.github.com>2018-01-15 00:43:39 +0300
committerGitHub <noreply@github.com>2018-01-15 00:43:39 +0300
commitebc42f8b5944e6669362e7d13856f126b8e075d7 (patch)
treeccc55700d93db4888a2b597a6047d5c970de802a /scripts/nix-profile.sh.in
parent74f75c855837bce7f48491e9ce8ac03794e5b40d (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.
Diffstat (limited to 'scripts/nix-profile.sh.in')
-rw-r--r--scripts/nix-profile.sh.in2
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