We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 456b529 commit 2242a1eCopy full SHA for 2242a1e
hooks/check-branch.sh
@@ -6,8 +6,8 @@ isVersionBranch=$( if [[ ${targetBranch} =~ ^[0-9]+.[0-9]+$ ]]; then echo true;
6
7
# Check that the code version matches the branch version if on a versioned branch
8
# `%.*` strips out the suffix after (and including) the last `.`
9
-if "$isVersionBranch" && [[ "${targetBranch%.*}" != "${newestVersion%.*}" ]]
+if "$isVersionBranch" && [[ "${targetBranch}" != "${newestVersion%.*}" ]]
10
then
11
- echo "Code version (${newestVersion%.*}) does not match branch (${targetBranch%.*}), unexpected."
+ echo "Code version (${newestVersion%.*}) does not match branch (${targetBranch}), unexpected."
12
exit 1
13
fi
0 commit comments