forked from Telodendria/Telodendria
Make td run warn if Memory.txt gets created.
This commit is contained in:
parent
f3c4c0ac65
commit
b8d00bc8bf
1 changed files with 6 additions and 0 deletions
|
@ -154,6 +154,12 @@ recipe_build() {
|
|||
recipe_run() {
|
||||
if [ -f "build/$PROG" ]; then
|
||||
"build/$PROG" -f contrib/development.conf
|
||||
|
||||
dataDir=$(< contrib/development.conf json -s "dataDir->@decode")
|
||||
if [ -f "$dataDir/Memory.txt" ]; then
|
||||
echo "WARNING: Memory.txt exists in the data directory; this means"
|
||||
echo "Telodendria is leaking memory. Please fix memory leaks."
|
||||
fi
|
||||
else
|
||||
echo "build/$PROG does not exist; build it first."
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue