#!/bin/bash
set -e
if [ "$#" -ne 1 ]; then
echo "Expected build log as argument"
exit 1
fi
if grep -q 'LEAK:' $1 ; then
echo "Leak detected, please inspect build log"
else
echo "No Leak detected"
exit 0