checkout before getting version
This commit is contained in:
@@ -73,12 +73,12 @@ projdir=`pwd`
|
|||||||
builddir=`mktemp -d 2>/dev/null || mktemp -d -t 'buildtmp'`
|
builddir=`mktemp -d 2>/dev/null || mktemp -d -t 'buildtmp'`
|
||||||
pushd "$builddir"
|
pushd "$builddir"
|
||||||
|
|
||||||
# Figure out what version we're building
|
|
||||||
vername=`jq -r .version package.json`
|
|
||||||
|
|
||||||
git clone "$projdir" .
|
git clone "$projdir" .
|
||||||
git checkout "$version"
|
git checkout "$version"
|
||||||
|
|
||||||
|
# Figure out what version we're building
|
||||||
|
vername=`jq -r .version package.json`
|
||||||
|
|
||||||
if [ -n "$conffile" ]; then
|
if [ -n "$conffile" ]; then
|
||||||
popd
|
popd
|
||||||
cp "$conffile" "$builddir/"
|
cp "$conffile" "$builddir/"
|
||||||
|
|||||||
Reference in New Issue
Block a user