]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dev-new-build: do not 'cd ceph-*'
authorKefu Chai <kchai@redhat.com>
Fri, 4 Oct 2019 19:33:51 +0000 (03:33 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 5 Oct 2019 02:07:24 +0000 (10:07 +0800)
on cenos8, we will have

$ cd ceph-15.0.0-5635-gda7c5f3 ceph-15.0.0-5635-gda7c5f3.tar.bz2 ceph-15.0.0-5635-gda7c5f3.tar.gz
/tmp/jenkins8338985937861239310.sh: line 1055: cd: too many arguments

Signed-off-by: Kefu Chai <kchai@redhat.com>
ceph-dev-new-build/build/setup_deb
ceph-dev-new-build/build/setup_rpm

index 08b24525fb05b06be43af685e345bf4d1a235bb2..02601ba1b1c54b57fd00f9e25951dc70c08e07f9 100644 (file)
@@ -26,7 +26,7 @@ $SUDO apt-get install -y lsb-release
 # 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
 
 BRANCH=`branch_slash_filter $BRANCH`
index 789dbea3d4665b1e3c7743683df47b71e39eb235..19da81847aa20940cbe579812cd99c10d41b0613 100644 (file)
@@ -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