Skip to content

Commit b0f71bc

Browse files
committed
Fix Docker image version for develop builds
Turns out it helps to use the right syntax. Fixes element-hq#12009
1 parent 71f2f0e commit b0f71bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)