From 8b83e6b0867576fcefb60b19dbcd4fcee3e6e862 Mon Sep 17 00:00:00 2001 From: Nikolai Kondrashov Date: Thu, 6 Feb 2014 11:02:25 +0100 Subject: Handle unbound variables in bashrc_sssd MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Explicitly substitute empty strings for unbound variables in bashrc_sssd to support its use in scripts with unbound variable detection enabled (set -u). Reviewed-by: Stephen Gallagher Reviewed-by: Michal Žídek --- contrib/fedora/bashrc_sssd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib/fedora') diff --git a/contrib/fedora/bashrc_sssd b/contrib/fedora/bashrc_sssd index b1b0c1001..6740e93dc 100644 --- a/contrib/fedora/bashrc_sssd +++ b/contrib/fedora/bashrc_sssd @@ -50,7 +50,7 @@ fedconfig() --with-test-dir=/dev/shm \ --enable-all-experimental-features \ --cache-file=/tmp/fedconfig.cache \ - $SSSD_NO_MANPAGES \ + ${SSSD_NO_MANPAGES-} \ "$@" } @@ -78,7 +78,7 @@ SSS_WARNINGS='-Wall \ # them. This builds with optimizations turned off and GDB debugging symbols. chmake() { - make V=0 CFLAGS+="-ggdb3 -O0 $SSS_WARNINGS $SSS_WERROR" \ + make V=0 CFLAGS+="-ggdb3 -O0 $SSS_WARNINGS ${SSS_WERROR-}" \ -j$PROCESSORS check "$@" } -- cgit