File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ if [[ ! -x "${JAVA_HOME}/bin/java" ]]; then
106106 rm -rf /opt/jdk-17*
107107 mkdir -p /opt
108108 tar xf /tmp/jdk17.tar.gz -C /opt
109- JAVA_HOME=$( find /opt -maxdepth 1 -type d -name ' jdk-17*' | head -1 )
109+ JAVA_HOME=$( find /opt -maxdepth 1 -type d -name ' jdk-17*' -print -quit )
110110 ln -sfn " ${JAVA_HOME} " /opt/jdk-17
111111 JAVA_HOME=/opt/jdk-17
112112fi
@@ -133,7 +133,7 @@ SO="iotdb-client/client-cpp/target/install/lib/libiotdb_session.so"
133133test -f " ${SO} "
134134
135135echo " === Build host glibc ==="
136- ldd --version | head -1
136+ ldd --version 2>&1 | sed -n ' 1p '
137137
138138echo " === Highest GLIBC_* symbols in libiotdb_session.so ==="
139139objdump -T " ${SO} " | grep GLIBC_ | sed " s/.*GLIBC_/GLIBC_/" | sort -Vu | tail -10
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ export PATH="${CMAKE_DIR}/bin:${JAVA_HOME}/bin:${PATH}"
4141java -version
4242gcc --version
4343cmake --version
44- ldd --version | head -1
44+ ldd --version 2>&1 | sed -n ' 1p '
4545
4646cd " ${GITHUB_WORKSPACE:? GITHUB_WORKSPACE is not set} "
4747./mvnw clean package -P with-cpp -pl iotdb-client/client-cpp -am -DskipTests \
You can’t perform that action at this time.
0 commit comments