Skip to content

Commit c06d667

Browse files
committed
fix update-versions script
1 parent a4cb5be commit c06d667

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/update-versions

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
VERSION="$1"
3+
VERSION="${1:-$SE_VERSION}"
44
MAJOR_VERSION=$(echo "${VERSION}" | cut -d. -f1)
55
MINOR_VERSION=$(echo "${VERSION}" | cut -d. -f2)
66
PREVIOUS_MINOR_VERSION=$((MINOR_VERSION-1))
@@ -12,7 +12,9 @@ BUILD_TYPE="$2"
1212
release_version() {
1313
local FILE_PATH="$1"
1414

15-
if [[ "$FILE_PATH" == "rb/lib/selenium/webdriver/version.rb" ]]; then
15+
if [[ "$FILE_PATH" == "java/version.bzl" ]]; then
16+
sed -i '' "s/\.0-SNAPSHOT/\.0/g" "${FILE_PATH}"
17+
elif [[ "$FILE_PATH" == "rb/lib/selenium/webdriver/version.rb" ]]; then
1618
sed -i '' "s/\.nightly//g" "${FILE_PATH}"
1719
else
1820
sed -i '' "s/${PREVIOUS_VERSION}\.[0-9]*/${VERSION}/g" "${FILE_PATH}"

0 commit comments

Comments
 (0)