From ce2502c113e044659b7169b79c8cd407beabdb8b Mon Sep 17 00:00:00 2001 From: Lucas Date: Sat, 3 Oct 2020 16:05:14 +0000 Subject: [PATCH] Deal with Riot -> Element rename --- .../scripts/{update-riot-web.sh => update-element-web.sh} | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) rename utils/scripts/{update-riot-web.sh => update-element-web.sh} (80%) diff --git a/utils/scripts/update-riot-web.sh b/utils/scripts/update-element-web.sh similarity index 80% rename from utils/scripts/update-riot-web.sh rename to utils/scripts/update-element-web.sh index 1e5648d..3db2251 100644 --- a/utils/scripts/update-riot-web.sh +++ b/utils/scripts/update-element-web.sh @@ -27,13 +27,14 @@ isversion() printf "%s\n" "$*" | grep -Eq "^v[0-9]+\.[0-9]+\.[0-9]+$" } -[ -n "${RIOT_WEB_UI_DIR:-}" ] || err "environment var RIOT_WEB_UI_DIR unset" +[ -n "${ELEMENT_WEB_UI_DIR:-}" ] || + err "environment var ELEMENT_WEB_UI_DIR unset" [ $# -eq 1 ] && isversion "$1" || usage ver=$1 -GH_BASE_URL=https://github.com/vector-im/riot-web/releases/download +GH_BASE_URL=https://github.com/vector-im/element-web/releases/download -cd "$RIOT_WEB_UI_DIR" || err "can't cd to web UI directory" +cd "$ELEMENT_WEB_UI_DIR" || err "can't cd to web UI directory" ftp -o - "$GH_BASE_URL/$ver/riot-$ver.tar.gz" | pax -rz || err "can't fetch and extract release" rm -f riot && ln -s "riot-$ver" riot ||