Skip to content

Commit

Permalink
Don't fail if there's no local config to remove
Browse files Browse the repository at this point in the history
The script has a set -e so don't fail if there's nothing to rm
  • Loading branch information
dbkr committed Apr 26, 2019
1 parent a67fd48 commit c62da0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c62da0e

Please sign in to comment.