Merge pull request #9571 from vector-im/dbkr/package_dont_fail_if_no_local_config

Don't fail if there's no local config to remove
This commit is contained in:
David Baker 2019-04-26 14:36:28 +01:00 committed by GitHub
commit 03b1914112
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,7 @@ mkdir -p dist
cp -r webapp riot-$version cp -r webapp riot-$version
# Just in case you have a local config, remove it before packaging # Just in case you have a local config, remove it before packaging
rm riot-$version/config.json rm riot-$version/config.json || true
# 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