]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
install-deps.sh: fix an error condition expression
authorYao Guotao <yaoguot@gmail.com>
Fri, 9 Mar 2018 09:46:27 +0000 (04:46 -0500)
committerNathan Cutler <ncutler@suse.com>
Fri, 4 Oct 2019 15:17:21 +0000 (17:17 +0200)
Signed-off-by: Yao Guotao <yaoguot@gmail.com>
(cherry picked from commit b3a59490311ee1f5bbc5b34ac5c8a1c31b34a5de)

install-deps.sh

index dddae0d2dfbca7badb9b30a07f89897aefeee2f7..30df5efacb012816bec81061bb63234599121c5d 100755 (executable)
@@ -235,7 +235,7 @@ else
         munge_ceph_spec_in $DIR/ceph.spec
         $SUDO $yumdnf install -y \*rpm-macros
         $SUDO $builddepcmd $DIR/ceph.spec 2>&1 | tee $DIR/yum-builddep.out
-       if [ -n dts_ver ]; then
+       if [ -n "$dts_ver" ]; then
             ensure_decent_gcc_on_rh $dts_ver
        fi
         ! grep -q -i error: $DIR/yum-builddep.out || exit 1