]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
install-deps.sh: fix an error condition expression 20819/head
authorYao Guotao <yaoguot@gmail.com>
Fri, 9 Mar 2018 09:46:27 +0000 (04:46 -0500)
committerYao Guotao <yaoguot@gmail.com>
Fri, 9 Mar 2018 09:46:27 +0000 (04:46 -0500)
Signed-off-by: Yao Guotao <yaoguot@gmail.com>
install-deps.sh

index 30828559166c673948e090fbd57c00e7ef1a3efc..c9d185b20471b115b50fc1fb6d6fa38990eec62f 100755 (executable)
@@ -315,7 +315,7 @@ else
         esac
         munge_ceph_spec_in $DIR/ceph.spec
         $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