From 5155fc2ec4964fb17251faf8fcde2c0e31a10aac Mon Sep 17 00:00:00 2001 From: q Date: Sat, 14 Sep 2024 19:05:53 -0400 Subject: [PATCH] Switch to downloading develop branch by default --- download_element.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/download_element.sh b/download_element.sh index ff431e7..735c975 100755 --- a/download_element.sh +++ b/download_element.sh @@ -17,10 +17,14 @@ repository_url="https://github.com/element-hq/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})" -git clone --depth 1 --branch "${latest_version}" "${repository_url}" "${directory_name}" +git clone --depth 1 --branch "${branch}" "${repository_url}" "${directory_name}" cd "${directory_name}" yarn cd ..