Merge pull request #7042 from libgit2/ethomson/benchmark

This commit is contained in:
Edward Thomson
2025-03-02 10:56:58 +01:00
committed by GitHub

View File

@@ -126,7 +126,7 @@ cli_commit() {
BUILD_OPTIONS=$("$1" version --build-options)
fi
echo "${BUILD_OPTIONS}" | grep '^built from commit: ' | sed -e 's/^built from commit: //'
echo "${BUILD_OPTIONS}" | { grep '^built from commit: ' || echo "unknown"; } | sed -e 's/^built from commit: //'
}
TEST_CLI_NAME=$(basename "${TEST_CLI}")