Linting broke for v10+ as the regex only matched one digit
This commit is contained in:
parent
34ced063a1
commit
c494284517
@ -6,17 +6,17 @@ cd "$parent_path" || exit
|
||||
if [ 1 -eq "$#" ]
|
||||
then
|
||||
echo "Version bump to $1"
|
||||
sed --in-place --regexp-extended 's/"([0-9].[0-9].[0-9])"/"'"$1"'"/g' barker/barker/__version__.py
|
||||
sed --in-place --regexp-extended 's/"([0-9]{1,2}.[0-9].[0-9])"/"'"$1"'"/g' barker/barker/__version__.py
|
||||
git add barker/barker/__version__.py
|
||||
sed --in-place --regexp-extended 's/version = "([0-9].[0-9].[0-9])"/version = "'"$1"'"/g' barker/pyproject.toml
|
||||
sed --in-place --regexp-extended 's/version = "([0-9]{1,2}.[0-9].[0-9])"/version = "'"$1"'"/g' barker/pyproject.toml
|
||||
git add barker/pyproject.toml
|
||||
sed --in-place --regexp-extended 's/version = "([0-9].[0-9].[0-9])"/version = "'"$1"'"/g' frank/pyproject.toml
|
||||
sed --in-place --regexp-extended 's/version = "([0-9]{1,2}.[0-9].[0-9])"/version = "'"$1"'"/g' frank/pyproject.toml
|
||||
git add frank/pyproject.toml
|
||||
sed --in-place --regexp-extended 's/version: '\''([0-9].[0-9].[0-9])'\''/version: '\'"$1"\''/g' bookie/src/environments/environment.prod.ts
|
||||
sed --in-place --regexp-extended 's/version: '\''([0-9]{1,2}.[0-9].[0-9])'\''/version: '\'"$1"\''/g' bookie/src/environments/environment.prod.ts
|
||||
git add bookie/src/environments/environment.prod.ts
|
||||
sed --in-place --regexp-extended 's/version: '\''([0-9].[0-9].[0-9])'\''/version: '\'"$1"\''/g' bookie/src/environments/environment.ts
|
||||
sed --in-place --regexp-extended 's/version: '\''([0-9]{1,2}.[0-9].[0-9])'\''/version: '\'"$1"\''/g' bookie/src/environments/environment.ts
|
||||
git add bookie/src/environments/environment.ts
|
||||
sed --in-place --regexp-extended 's/"version": "([0-9].[0-9].[0-9])"/"version": "'"$1"'"/g' bookie/package.json
|
||||
sed --in-place --regexp-extended 's/"version": "([0-9]{1,2}.[0-9].[0-9])"/"version": "'"$1"'"/g' bookie/package.json
|
||||
git add bookie/package.json
|
||||
git commit -m "Version Bump v$1"
|
||||
git tag "v$1"
|
||||
|
Loading…
Reference in New Issue
Block a user