Browse Source

Don't fail if there's no local config to remove

The script has a set -e so don't fail if there's nothing to rm
pull/9571/head
David Baker 3 years ago
parent
commit
c62da0eda6
  1. 2
      scripts/package.sh

2
scripts/package.sh

@ -24,7 +24,7 @@ mkdir -p dist
cp -r webapp riot-$version
# 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} =~ ^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+(-.+)?$ ]]; then

Loading…
Cancel
Save