From 2b5592c3719bc0ae5f065c8217301dc10eef6b5f Mon Sep 17 00:00:00 2001 From: DeathByDenim Date: Thu, 7 Jul 2022 18:36:37 -0400 Subject: [PATCH] Just always get the latest version of OpenHV --- scripts/deploy_openhv.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/deploy_openhv.sh b/scripts/deploy_openhv.sh index cd5ad8e..3dc8353 100755 --- a/scripts/deploy_openhv.sh +++ b/scripts/deploy_openhv.sh @@ -5,6 +5,10 @@ if [ -e /etc/systemd/system/openhv.service ]; then systemctl stop openhv fi +if [ -z ${openhv_version} ] || [ "${openhv_version}" = "latest" ]; then + openhv_version=$(git ls-remote --refs --sort="version:refname" --tags https://github.com/OpenHV/OpenHV | tail -n1 | cut -d'/' -f3) +fi + # Install OpenHV mkdir -p /opt/openhv-${openhv_version} curl --location "https://github.com/OpenHV/OpenHV/releases/download/${openhv_version}/OpenHV-${openhv_version}-x86_64.AppImage" > /opt/openhv-${openhv_version}/OpenHV-x86_64.AppImage