diff options
author | Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com> | 2014-02-06 11:02:25 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-02-20 16:58:07 +0100 |
commit | 8b83e6b0867576fcefb60b19dbcd4fcee3e6e862 (patch) | |
tree | ed3f3b1e0a2ea56617b86eb8753d0f5b6069b03e /contrib | |
parent | bde0fb63858b8ac0315b2c0fd5ce37b19430f656 (diff) | |
download | sssd-8b83e6b0867576fcefb60b19dbcd4fcee3e6e862.tar.gz sssd-8b83e6b0867576fcefb60b19dbcd4fcee3e6e862.tar.xz sssd-8b83e6b0867576fcefb60b19dbcd4fcee3e6e862.zip |
Handle unbound variables in bashrc_sssd
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 <sgallagh@redhat.com>
Reviewed-by: Michal Žídek <mzidek@redhat.com>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/fedora/bashrc_sssd | 4 |
1 files changed, 2 insertions, 2 deletions
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 "$@" } |