From d953c73a9cf0b63837cfe3b9dec9fbc3d674d8d7 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Wed, 18 Dec 2019 10:05:43 -0500 Subject: [PATCH] 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 --- ceph-dev-build/build/setup_rpm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5