Use bash magic instead of sed
This commit is contained in:
parent
b0486e333d
commit
9c94f2ac14
|
@ -28,7 +28,7 @@ fi
|
||||||
# Chop 'origin' off the start as jenkins ends up using
|
# Chop 'origin' off the start as jenkins ends up using
|
||||||
# branches on the origin, but this doesn't work if we
|
# branches on the origin, but this doesn't work if we
|
||||||
# specify the branch when cloning.
|
# specify the branch when cloning.
|
||||||
curbranch=`echo "$curbranch" | sed -e 's/^origin\///'`
|
curbranch=${curbranch#origin/}
|
||||||
|
|
||||||
echo "Determined branch to be $curbranch"
|
echo "Determined branch to be $curbranch"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue