Make sure the right directory test is in place.

This commit is contained in:
Eric S. Raymond 2007-06-14 21:21:08 +00:00
parent 565b25a221
commit bc242070db

View file

@ -6,7 +6,7 @@
# This had better take us to the top-level source directory.
# Otherwise, confusion will ensue.
cd ..
if [ `basename $PWD` != 'wesnoth' ]
if [ ! -d data -o ! -d images ]
then
echo "sanity_check: " \
"this tool must be run from the Wesnoth utils directory."