From: David Galloway Date: Wed, 18 Dec 2019 15:05:43 +0000 (-0500) Subject: ceph-dev-build: Don't try to cd into tarballs X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1462%2Fhead;p=ceph-build.git ceph-dev-build: Don't try to cd into tarballs Fixes: ``` + cd dist + tar xzf ceph_15.0.0-8623-g8a4458f.orig.tar.gz + cd ceph-15.0.0-8623-g8a4458f ceph-15.0.0-8623-g8a4458f.tar.bz2 ceph-15.0.0-8623-g8a4458f.tar.gz /tmp/jenkins8482303231462049247.sh: line 1064: cd: too many arguments ``` Signed-off-by: David Galloway --- diff --git a/ceph-dev-build/build/setup_rpm b/ceph-dev-build/build/setup_rpm index 13c67f44..9fafd209 100644 --- a/ceph-dev-build/build/setup_rpm +++ b/ceph-dev-build/build/setup_rpm @@ -26,7 +26,7 @@ $SUDO yum install -y redhat-lsb-core # unpack the tar.gz that contains the debian dir cd dist tar xzf *.orig.tar.gz -cd ceph-* +cd $(basename *.orig.tar.gz .orig.tar.gz | sed s/_/-/) pwd $SUDO yum install -y yum-utils