From b6ea3992414356d9bbe514a200b4d9bd2dbf2492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ha=CC=8Avard=20Ottestad?= Date: Wed, 5 Jun 2024 11:56:04 +0200 Subject: [PATCH] fix milestone script --- scripts/milestone-release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/milestone-release.sh b/scripts/milestone-release.sh index 21723cd7692..54a0c4c6bec 100755 --- a/scripts/milestone-release.sh +++ b/scripts/milestone-release.sh @@ -75,10 +75,10 @@ if ! [[ $(git status --porcelain -u no --branch) == "## main...origin/main" ]] fi ORIGINAL_BRANCH="" -if git status --porcelain -u no --branch == "## main...origin/main"; then +if [[ $(git status --porcelain -u no --branch) == "## main...origin/main" ]]; then ORIGINAL_BRANCH="main"; fi -if git status --porcelain -u no --branch == "## develop...origin/develop"; then +if [[ $(git status --porcelain -u no --branch) == "## develop...origin/develop" ]]; then ORIGINAL_BRANCH="develop"; fi