[Bash-completion-commits] [bash-completion] 01/01: profile.d: Avoid some warnings from shells in "nounset" mode (Debian: #776160)
Ville Skyttä
scop-guest at moszumanska.debian.org
Sun Jan 25 14:27:43 UTC 2015
This is an automated email from the git hooks/post-receive script.
scop-guest pushed a commit to branch master
in repository bash-completion.
commit c725e6b195ea6ac2d25dfbb85b7e87bfbe42fe68
Author: Michael Gold <michael at bitplane.org>
Date: Sun Jan 25 16:26:09 2015 +0200
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 36ccd3f..14be4e6 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 ] || \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git
More information about the Bash-completion-commits
mailing list