From c725e6b195ea6ac2d25dfbb85b7e87bfbe42fe68 Mon Sep 17 00:00:00 2001 From: Michael Gold Date: Sun, 25 Jan 2015 16:26:09 +0200 Subject: [PATCH] profile.d: Avoid some warnings from shells in "nounset" mode (Debian: #776160) --- bash_completion.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash_completion.sh.in b/bash_completion.sh.in index 36ccd3f9..14be4e66 100644 --- a/bash_completion.sh.in +++ b/bash_completion.sh.in @@ -1,5 +1,5 @@ # Check for interactive bash and that we haven't already been sourced. -if [ -n "$BASH_VERSION" -a -n "$PS1" -a -z "$BASH_COMPLETION_COMPAT_DIR" ]; then +if [ -n "${BASH_VERSION-}" -a -n "${PS1-}" -a -z "${BASH_COMPLETION_COMPAT_DIR-}" ]; then # Check for recent enough version of bash. if [ ${BASH_VERSINFO[0]} -gt 4 ] || \