17 lines
240 B
Bash
17 lines
240 B
Bash
|
#!/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"
|
||
|
exit 1
|
||
|
else
|
||
|
echo "No Leak detected"
|
||
|
exit 0
|
||
|
fi
|
||
|
|