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: v12.2.13~109^2~15 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=c605cd81e60416a56fb4a152dcdedaf0a0ee64cb;p=ceph.git install-deps.sh: fix an error condition expression Signed-off-by: Yao Guotao (cherry picked from commit b3a59490311ee1f5bbc5b34ac5c8a1c31b34a5de) --- diff --git a/install-deps.sh b/install-deps.sh index dddae0d2dfbca..30df5efacb012 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -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