aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/ci
diff options
context:
space:
mode:
authorGravatar Klaus Aehlig <aehlig@google.com>2016-11-23 14:18:30 +0000
committerGravatar Dmitry Lomov <dslomov@google.com>2016-11-23 16:44:14 +0000
commite626f740ea218ed032335826685accd5b4d7cfff (patch)
tree6210b346246128b4deb760a24020c54af0c365ba /scripts/ci
parent7b2f2e83ad7c72018f9c92ad1e1f736f5dbb82c0 (diff)
Fix pattern matching for the dist archive
-- Change-Id: I4d4b7d84b105061d1555da7f7144f310dde38cc8 Reviewed-on: https://cr.bazel.build/7512 MOS_MIGRATED_REVID=140025107
Diffstat (limited to 'scripts/ci')
-rwxr-xr-xscripts/ci/build.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/ci/build.sh b/scripts/ci/build.sh
index b19802ee24..0c4df206a2 100755
--- a/scripts/ci/build.sh
+++ b/scripts/ci/build.sh
@@ -449,7 +449,7 @@ function bazel_release() {
local filename=$(basename $file)
if [ "$filename" != README.md ]; then
if [ "$filename" == "bazel.dsc" ] || [ "$filename" == "bazel.tar.gz" ] \
- || [ "$filename" =~ "bazel-(.*)-dist.zip" ] ; then
+ || [[ "$filename" =~ bazel-(.*)-dist\.zip ]] ; then
local destfile=${tmpdir}/$filename
elif [[ "$file" =~ /([^/]*)(\.[^\./]+)$ ]]; then
local destfile=${tmpdir}/${BASH_REMATCH[1]}-${platform}${BASH_REMATCH[2]}