From b37f200c2b355eea1065d6d12f0c1464d7a09426 Mon Sep 17 00:00:00 2001 From: Diego Lovison Date: Mon, 19 Jan 2026 14:32:43 -0300 Subject: [PATCH] Install curl if not presented --- benchmark-runner/scripts/run-benchmark.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/benchmark-runner/scripts/run-benchmark.sh b/benchmark-runner/scripts/run-benchmark.sh index 72596e3..8896069 100755 --- a/benchmark-runner/scripts/run-benchmark.sh +++ b/benchmark-runner/scripts/run-benchmark.sh @@ -128,6 +128,20 @@ validate_config() { log " Measurement window: $((total_secs - warmup_secs))s" } +check_curl() { + # Check if curl is present + if ! command -v curl &> /dev/null; then + echo "curl not found, installing..." + + # Added DEBIAN_FRONTEND=noninteractive to prevent it from hanging on prompts + export DEBIAN_FRONTEND=noninteractive + apt-get update && apt-get install -y curl + fi + + # Verify and log the version (using head to just get the first line) + echo "curl version: $(curl --version | head -n 1)" +} + check_jbang() { if ! command -v jbang &> /dev/null; then log "jbang not found, installing..." @@ -614,6 +628,9 @@ EOF # Create output directory mkdir -p "$OUTPUT_DIR" + # Check curl + check_curl + # Check jbang check_jbang