Skip to content

Commit 7e1f6d9

Browse files
committed
fix(valgrind): run with bash to support complex scripts
1 parent 5ff1b29 commit 7e1f6d9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/run/runner/valgrind/measure.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ fn create_run_script() -> anyhow::Result<TempPath> {
5555
// Args:
5656
// 1. The command to execute
5757
// 2. The path to the file where the exit code will be written
58-
const WRAPPER_SCRIPT: &str = r#"#!/bin/sh
59-
sh -c "$1"
60-
status=$?
61-
echo -n "$status" > "$2"
62-
"#;
58+
const WRAPPER_SCRIPT: &str = r#"#!/usr/bin/env bash
59+
bash -c "$1"
60+
status=$?
61+
echo -n "$status" > "$2"
62+
"#;
6363

6464
let rwx = std::fs::Permissions::from_mode(0o777);
6565
let mut script_file = tempfile::Builder::new()

0 commit comments

Comments
 (0)