mirror of
https://github.com/iflytek/skillhub.git
synced 2026-10-09 03:17:52 +00:00
fix(ci): make identity test Java detection pipe-safe
Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
This commit is contained in:
parent
b4942b423f
commit
636739492f
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ run_test() {
|
|||
flyway_target="${2:-}"
|
||||
java_version=""
|
||||
if command -v java >/dev/null 2>&1; then
|
||||
java_version="$(java -version 2>&1 | head -n 1)"
|
||||
java_version="$(java -version 2>&1)"
|
||||
fi
|
||||
if [[ "${java_version}" == *'"21.'* ]]; then
|
||||
host_port="$(docker port "${POSTGRES_CONTAINER}" 5432/tcp \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue