Skip to content

Commit 2e58dd6

Browse files
committed
Fix update-version script as prettier broke our ugly sed trick
1 parent 65a9f22 commit 2e58dd6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/update-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ version=$1
3030
date_iso=$(date "+%Y-%m-%d")
3131

3232
sed -i.bak -E -e "s/^\#\# Unreleased/\#\# v${version} \(${date_iso}\)/gi" CHANGELOG.md && rm CHANGELOG.md.bak
33-
sed -i.bak -E -e "s/\/\\* PLAYER_VERSION \\*\/\".*\";/\/* PLAYER_VERSION *\/\"${version}\";/g" src/main_thread/api/public_api.ts && rm src/main_thread/api/public_api.ts.bak
33+
sed -i.bak -E -e "s/\/\\* PLAYER_VERSION \\*\/[[:space:]]*\".*\";/\/* PLAYER_VERSION *\/ \"${version}\";/g" src/main_thread/api/public_api.ts && rm src/main_thread/api/public_api.ts.bak
3434
sed -i.bak -E -e "s/\"version\":[[:space:]]*\"[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+[^\"]*\"/\"version\": \"${version}\"/g" package.json && rm package.json.bak
3535
sed -i.bak -E -e "s/sonar\.projectVersion= *.*/sonar.projectVersion=${version}/g" sonar-project.properties && rm sonar-project.properties.bak
3636
echo $version > VERSION

0 commit comments

Comments
 (0)