Skip to content

Commit 32aa897

Browse files
authored
Merge pull request element-hq#12670 from vector-im/travis/fix-docker-version
Fix Docker image version for develop builds
2 parents 71f2f0e + b0f71bc commit 32aa897

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/docker-write-version.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

33
set -ex
44

@@ -11,7 +11,7 @@ DIST_VERSION=$TAG
1111
# a few SHAs rather than a version.
1212
# Docker Hub doesn't always check out the tag and sometimes checks out the branch, so we should look
1313
# for an appropriately tagged branch as well (heads/v1.2.3).
14-
if [ $BRANCH != 'HEAD' && $BRANCH != 'heads/v*' ]
14+
if [[ $BRANCH != 'HEAD' && $BRANCH != 'heads/v*' ]]
1515
then
1616
REACT_SHA=$(cd node_modules/matrix-react-sdk; git rev-parse --short=12 HEAD)
1717
JSSDK_SHA=$(cd node_modules/matrix-js-sdk; git rev-parse --short=12 HEAD)

0 commit comments

Comments
 (0)