-
Notifications
You must be signed in to change notification settings - Fork 3.4k
{LTS} Do not add post suffix for branches starting with release
#30905
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,7 +22,7 @@ pip list | |
|
|
||
| script_dir=`cd $(dirname $BASH_SOURCE[0]); pwd` | ||
|
|
||
| if [[ "$branch" != "release" ]]; then | ||
| if [[ ! $branch =~ ^release ]]; then | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Double quotes in https://www.gnu.org/software/bash/manual/bash.html#index-_005b_005b [[ $line =~ ^"initial string" ]]This is also confirmed by https://unix.stackexchange.com/questions/500828/why-use-double-quotes-in-a-test From the output of set -x
branch="with a space"
if [[ $branch =~ ^release ]]; then
echo matched
fi
# output: + [[ with a space =~ ^release ]]
if [[ "$branch" =~ ^release ]]; then
echo matched
fi
# output: + [[ with a space =~ ^release ]] |
||
| . $script_dir/../../ci/version.sh post`date -u '+%Y%m%d%H%M%S'` | ||
| fi | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To test this regex match: