Permalink
Browse files

profile.d: Avoid some warnings from shells in "nounset" mode (Debian:…

… #776160)
  • Loading branch information...
1 parent 3cf50a1 commit c725e6b195ea6ac2d25dfbb85b7e87bfbe42fe68 Michael Gold committed with Jan 25, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 ] || \

0 comments on commit c725e6b

Please sign in to comment.