Merge pull request #3919 from vector-im/t3chguy/patch-1

fix #3894
This commit is contained in:
Matthew Hodgson 2017-05-15 21:15:03 +01:00 committed by GitHub
commit c8ac60768d

View file

@ -21,7 +21,7 @@ npm run build$dev
cp config.sample.json webapp/ cp config.sample.json webapp/
mkdir -p dist mkdir -p dist
cp -r webapp vector-$version cp -r webapp riot-$version
# if $version looks like semver with leading v, strip it before writing to file # if $version looks like semver with leading v, strip it before writing to file
if [[ ${version} =~ ^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+(-.+)?$ ]]; then if [[ ${version} =~ ^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+(-.+)?$ ]]; then