profile.d: Avoid some warnings from shells in "nounset" mode (Debian: #776160)

master
Michael Gold 2015-01-25 16:26:09 +02:00 committed by Ville Skyttä
parent 3cf50a1437
commit c725e6b195
1 changed files with 1 additions and 1 deletions

View File

@ -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 ] || \