Skip to content

Conversation

@yury-s
Copy link
Member

@yury-s yury-s commented Jun 24, 2025

Bash doesn't support [[ ... =~ ... ]] with double backslashes for escaping . in regex the same way Zsh does.

  • \. is sufficient in Bash (not \\.).
  • The double backslash \\. is interpreted literally as \. in the regex, which doesn’t behave as intended in Bash.

Fixes the following error:

Starting: Check the branch is a release branch
==============================================================================
Task         : Bash
Description  : Run a Bash script on macOS, Linux, or Windows
Version      : 3.250.1
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/bash
==============================================================================
Generating script.
========================== Starting Command Output ===========================
/usr/bin/bash /mnt/vss/_work/_temp/95dbd6e7-36d9-4830-a31d-e46e74274323.sh
Can only publish from a release tag branch (v1.*).
Unexpected branch name: v1.53.0

##[error]Bash exited with code '1'.
Finishing: Check the branch is a release branch

@yury-s yury-s merged commit 9df2165 into microsoft:main Jun 24, 2025
17 of 19 checks passed
yury-s added a commit that referenced this pull request Jun 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants