Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Commit

Permalink
Do not use sed -E in bootstrap/compile.sh
Browse files Browse the repository at this point in the history
Strangely enough, some clients have sed that doesn't support -E

RELNOTES: None.
PiperOrigin-RevId: 157397892
  • Loading branch information
hlopko authored and laszlocsomor committed May 30, 2017
1 parent 18a70dc commit 3566474
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/bootstrap/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ MSYS_DLLS=""

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

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

0 comments on commit 3566474

Please sign in to comment.