From f879af592fe78e8b2e536a8da2909df05915c969 Mon Sep 17 00:00:00 2001 From: CamDavidsonPilon Date: Tue, 24 Jan 2023 20:26:02 -0500 Subject: [PATCH] print metadata about UI release --- workspace/scripts/08-install-pioreactorui.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/workspace/scripts/08-install-pioreactorui.sh b/workspace/scripts/08-install-pioreactorui.sh index 068e8e1..023f98e 100644 --- a/workspace/scripts/08-install-pioreactorui.sh +++ b/workspace/scripts/08-install-pioreactorui.sh @@ -22,7 +22,9 @@ if [ "$LEADER" == "1" ]; then sudo pip3 install --no-cache-dir --no-binary pyyaml pyyaml # get latest pioreactorUI code from Github. - latest_tag=$(curl -sS https://api.github.com/repos/pioreactor/pioreactorui/releases/latest | sed -Ene '/^ *"tag_name": *"(.+)",$/s//\1/p') + latest_release=$(curl -sS https://api.github.com/repos/pioreactor/pioreactorui/releases/latest) + echo "Release data: $latest_release" + latest_tag=$(echo "$latest_release" | sed -Ene '/^ *"tag_name": *"(.+)",$/s//\1/p') echo "Installing UI version $latest_tag" curl -sS -o pioreactorui.tar.gz -JLO https://github.com/pioreactor/pioreactorui/archive/"$latest_tag".tar.gz tar -xzf pioreactorui.tar.gz