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