From f837c3dc7942fbe06f818a11bf04c1e73f498255 Mon Sep 17 00:00:00 2001 From: Viktor Scharf Date: Thu, 17 Apr 2025 21:42:27 +0200 Subject: [PATCH] bare-metal-deploy. getting latest version --- deployments/examples/bare-metal-simple/install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/deployments/examples/bare-metal-simple/install.sh b/deployments/examples/bare-metal-simple/install.sh index 87309e4a53..88b8c1f2b4 100755 --- a/deployments/examples/bare-metal-simple/install.sh +++ b/deployments/examples/bare-metal-simple/install.sh @@ -35,9 +35,10 @@ function backup_file () { } function get_latest_version() { - latest_version=`curl --silent "https://api.github.com/repos/opencloud-eu/opencloud/releases/latest" \ - | jq -r .tag_name \ - | sed -e s/^v//` + latest_version=$(curl -s https://api.github.com/repos/opencloud-eu/opencloud/releases/latest \ + | grep '"tag_name":' \ + | awk -F: '{print $2}' \ + | tr -d ' ",v') } # URL pattern of the download file