From 10d5a531aacdec0cded6e8babe247581a6e7faa3 Mon Sep 17 00:00:00 2001 From: Florent Poinsard Date: Mon, 21 Feb 2022 09:05:39 +0100 Subject: [PATCH] chore: applied shellcheck suggestions on get_latest_release.sh Signed-off-by: Florent Poinsard --- tools/get_latest_release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/get_latest_release.sh b/tools/get_latest_release.sh index 7740618ebd..c8a54a12a0 100755 --- a/tools/get_latest_release.sh +++ b/tools/get_latest_release.sh @@ -25,9 +25,9 @@ target_release="" base_release_branch=$(echo "$1" | grep -E 'release-[0-9]*.0$') if [ "$base_release_branch" != "" ]; then major_release=$(echo "$base_release_branch" | sed 's/release-*//' | sed 's/\.0//') - target_release="release-$((${major_release}-1)).0" + target_release="release-$((major_release-1)).0" else target_release="release-$(git show-ref | grep -E 'refs/remotes/origin/release-[0-9]*\.0$' | sed 's/[a-z0-9]* refs\/remotes\/origin\/release-//' | sort -nr | head -n1)" fi -echo $target_release \ No newline at end of file +echo "$target_release" \ No newline at end of file