]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dev-setup: fix parsing of GIT_BRANCH 457/head
authorAndrew Schoen <aschoen@redhat.com>
Thu, 1 Sep 2016 21:55:12 +0000 (16:55 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Thu, 1 Sep 2016 21:55:12 +0000 (16:55 -0500)
A branch name can also contain a '/' so make sure not
to exclude that.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
ceph-dev-setup/build/build

index 307f0f88c3daf642d471f939c220b8af2e73b253..fdcf85d888df3d49250d5b9927f741f02a5e6cab 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/bash -ex
 
-BRANCH=`echo $GIT_BRANCH | cut -d '/' -f 2`
+BRANCH=`echo $GIT_BRANCH | cut -d '/' -f 2-`
 
 HOST=$(hostname --short)
 echo "Building on ${HOST}"