From: Yao Guotao Date: Fri, 9 Mar 2018 09:46:27 +0000 (-0500) Subject: install-deps.sh: fix an error condition expression X-Git-Tag: v13.0.2~24^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F20819%2Fhead;p=ceph.git install-deps.sh: fix an error condition expression Signed-off-by: Yao Guotao --- diff --git a/install-deps.sh b/install-deps.sh index 30828559166c..c9d185b20471 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -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