Skip to content

Commit 3566474

Browse files
hlopkolaszlocsomor
authored andcommitted
Do not use sed -E in bootstrap/compile.sh
Strangely enough, some clients have sed that doesn't support -E RELNOTES: None. PiperOrigin-RevId: 157397892
1 parent 18a70dc commit 3566474

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/bootstrap/compile.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ MSYS_DLLS=""
6767

6868
function get_minor_java_version() {
6969
get_java_version
70-
java_minor_version=$(echo $JAVA_VERSION | sed -E 's/.+\.(.+)(\..*)?/\1/')
71-
javac_minor_version=$(echo $JAVAC_VERSION | sed -E 's/.+\.(.+)(\..*)?/\1/')
70+
java_minor_version=$(echo $JAVA_VERSION | sed 's/[^.][^.]*\.//' | sed 's/\..*$//')
71+
javac_minor_version=$(echo $JAVAC_VERSION | sed 's/[^.][^.]*\.//' | sed 's/\..*$//')
7272
}
7373

7474
# Check that javac -version returns a upper version than $JAVA_VERSION.

0 commit comments

Comments
 (0)