Skip to content

Commit 7d102ed

Browse files
committed
fix: venv compat script
1 parent 79d3a33 commit 7d102ed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/run/runner/valgrind/helpers/venv_compat.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function add_symlink() {
1414
echo "Python installation (system): $system_path"
1515
echo "Python installation (venv): $venv_path"
1616

17-
libpython_name="$(ldd "$venv_python" 2>/dev/null | grep -o -m1 'libpython[^[:space:]]*' || true)"
17+
libpython_name="$(ldd "$venv_python" 2>/dev/null | grep -o 'libpython[^[:space:]]*' | head -1 | tr -d '\n' || true)"
1818
if [ -z "$libpython_name" ]; then
1919
echo "Error: exact libpython name not found in $(ldd $venv_python)" >&2
2020
return 0

0 commit comments

Comments
 (0)