about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorIavael <iavael@users.noreply.github.com>2018-01-14T21·43+0300
committerGitHub <noreply@github.com>2018-01-14T21·43+0300
commitebc42f8b5944e6669362e7d13856f126b8e075d7 (patch)
treeccc55700d93db4888a2b597a6047d5c970de802a /scripts
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')
-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 450d683c7f..a5f52274fc 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