From 616918e4b84b84c29f539221c66f55457f710ba3 Mon Sep 17 00:00:00 2001 From: Alex Gonzalez Date: Wed, 1 Jan 2025 19:53:11 +0100 Subject: [PATCH] workflows: meta-balena-esr: fix array creation By removing linter errors and adding quotes inside the array, its contents become a single element string which is not the intention, as it should become a semver array. Change-type: patch Signed-off-by: Alex Gonzalez --- .github/workflows/meta-balena-esr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/meta-balena-esr.yml b/.github/workflows/meta-balena-esr.yml index 8d5e3a4f5e..f51ee44f7c 100644 --- a/.github/workflows/meta-balena-esr.yml +++ b/.github/workflows/meta-balena-esr.yml @@ -94,7 +94,7 @@ jobs: git fetch --tags origin current_os_version=$(git describe --abbrev=0 "$(git rev-list --tags --max-count=1)") current_os_version="${current_os_version:1}" - va=("${current_os_version//./ }") + va=( ${current_os_version//./ } ) if [ ${#va[@]} -ne 3 ]; then echo "Invalid current version: ${current_os_version}" exit 1 @@ -107,7 +107,7 @@ jobs: os_version=$(git tag --sort -version:refname | grep "v${va[0]}\." | head -n1) fi os_version="${os_version:1}" - ov_arr=( "${os_version//./ }" ) + ov_arr=( ${os_version//./ } ) os_esr_branch=${ov_arr[0]}.${ov_arr[1]}.x if git ls-remote --exit-code --heads origin "${os_esr_branch}" > /dev/null; then echo "Branch ${os_esr_branch} already exists"