#!/bin/bash

if [ -z "$1" ]; then
  echo "Usage: $0 <file>"
  exit 1
fi

if [[ "$(uname)" != "Darwin" ]]; then
  echo "Not on macOS, skipping leaks parse check."
  exit 0
fi

leaks --atExit -- ./herb parse "$1"
