mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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 edb5650c737d582595e134aab286e7304f299983) 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=
|
branch=
|
||||||
|
|
||||||
if [ -z "$branch" ] ; then
|
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
|
fi
|
||||||
|
|
||||||
rootdir=$PWD
|
rootdir=$PWD
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user