mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-16 06:18:47 +02:00
Make test-rem test itself to ensure it always invokes remind as ../src/remind.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user