install-deps.sh: fix an error condition expression

Signed-off-by: Yao Guotao <yaoguot@gmail.com>
This commit is contained in:
Yao Guotao 2018-03-09 04:46:27 -05:00
parent 21146f9e4d
commit b3a5949031

View File

@ -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