ledger/valgrind.sh

9 lines
161 B
Bash
Executable file

#!/bin/bash
VALGRIND=$(which valgrind 2>&1)
if [ -x "$VALGRIND" ]; then
exec "$VALGRIND" --leak-check=full --show-reachable=yes "$@"
else
exec "$@"
fi