Abort if the map directory is missing

This commit is contained in:
HybridDog 2018-09-29 10:59:01 +02:00 committed by est31
parent 89cd4b5a91
commit a5d3d2d9ec

View File

@ -16,6 +16,12 @@ if [ ! -f $mapperpath ]; then
exit 1
fi
if [ ! -d "$MAPDIR" ]; then
echo "Error, the directory \"$MAPDIR\" doesn't exist."
echo "Please specify the path to the minetest world"
exit 1
fi
if [ -f downscaling/perc ]; then
echo "Using SSIM based downscaling"
downscale() {