cli: fix benchmark commit interrogation

Don't fail the benchmark script if we can't identify the CLI commit.
This commit is contained in:
Edward Thomson
2025-03-02 08:56:38 +00:00
parent eb22b60063
commit 48d031f6ab

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}")