Switch to downloading develop branch by default
This commit is contained in:
parent
1595d59bda
commit
5155fc2ec4
@ -17,10 +17,14 @@
|
|||||||
|
|
||||||
repository_url="https://github.com/element-hq/element-web"
|
repository_url="https://github.com/element-hq/element-web"
|
||||||
directory_name="element-web"
|
directory_name="element-web"
|
||||||
latest_version=$(curl -s https://api.github.com/repos/element-hq/element-web/tags | grep -oP '"name": "\K[^"]+' | head -n 1)
|
|
||||||
|
# Latest from develop branch:
|
||||||
|
branch=develop
|
||||||
|
# Latest tagged release:
|
||||||
|
#branch=$(curl -s https://api.github.com/repos/element-hq/element-web/tags | grep -oP '"name": "\K[^"]+' | head -n 1)
|
||||||
|
|
||||||
echo "Downloading latest version (${latest_version})"
|
echo "Downloading latest version (${latest_version})"
|
||||||
git clone --depth 1 --branch "${latest_version}" "${repository_url}" "${directory_name}"
|
git clone --depth 1 --branch "${branch}" "${repository_url}" "${directory_name}"
|
||||||
cd "${directory_name}"
|
cd "${directory_name}"
|
||||||
yarn
|
yarn
|
||||||
cd ..
|
cd ..
|
||||||
|
Loading…
Reference in New Issue
Block a user