Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions deployment/kubernetes/scripts/install-helm-chart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ download_latest_chart() {

# Extract the tag name and download URL for the .tgz file
local tag_name=$(echo "$latest_release" | jq -r '.tag_name')
local download_url=$(echo "$latest_release" | jq -r '.assets[] | select(.name | endswith(".tgz")) | .browser_download_url')
local filename=$(echo "$latest_release" | jq -r '.assets[] | select(.name | endswith(".tgz")) | .name')
local download_url=$(echo "$latest_release" | jq -r '.assets[] | select(.name | contains("latest") and endswith(".tgz")) | .browser_download_url')
local filename=$(echo "$latest_release" | jq -r '.assets[] | select(.name | contains("latest") and endswith(".tgz")) | .name')

if [ -z "$download_url" ] || [ "$download_url" = "null" ]; then
echo_error "No .tgz file found in the latest release ($tag_name)"
Expand Down