Switch to downloading develop branch by default

This commit is contained in:
q 2024-09-14 19:05:53 -04:00
parent 1595d59bda
commit 5155fc2ec4

View File

@ -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 ..