mirror of https://github.com/apache/cloudstack.git
appliance: box commands for dumb bash in cleaning branch name, in build.sh
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit edb5650c73)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
e71009a571
commit
4217d157c5
|
|
@ -31,7 +31,7 @@ build_date=`date +%Y-%m-%d`
|
|||
branch=
|
||||
|
||||
if [ -z "$branch" ] ; then
|
||||
branch=`git name-rev --no-undefined --name-only HEAD 2>/dev/null || echo unknown | sed -e 's/remotes\/.*\///g'`
|
||||
branch=`(git name-rev --no-undefined --name-only HEAD 2>/dev/null || echo unknown) | sed -e 's/remotes\/.*\///g'`
|
||||
fi
|
||||
|
||||
rootdir=$PWD
|
||||
|
|
|
|||
Loading…
Reference in New Issue