From b3a59490311ee1f5bbc5b34ac5c8a1c31b34a5de Mon Sep 17 00:00:00 2001 From: Yao Guotao Date: Fri, 9 Mar 2018 04:46:27 -0500 Subject: [PATCH] install-deps.sh: fix an error condition expression Signed-off-by: Yao Guotao --- install-deps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3