Make test-rem test itself to ensure it always invokes remind as ../src/remind.

This commit is contained in:
Dianne Skoll
2024-11-18 10:50:43 -05:00
parent e8c779c785
commit c73e1b6f97

View File

@@ -27,6 +27,16 @@ if test `id -u` = 0 ; then
exit 1
fi
# Make sure all invocations of "remind" are ../src/remind!
grep remind $0 | grep -v -F '../src/remind' > /dev/null 2>&1
if test "$?" = 0 ; then
echo "*** test-rem seems to invoke remind without specifying it as ../src/remind"
echo "*** BAILING OUT"
exit 1
fi
# Set a known timezone so moon phases show up in predictable places
TZ=UTC
export TZ