From a5d3d2d9ec2a8b55912d1b5b1e0280c45824c8f9 Mon Sep 17 00:00:00 2001 From: HybridDog Date: Sat, 29 Sep 2018 10:59:01 +0200 Subject: [PATCH] Abort if the map directory is missing --- mapper.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mapper.sh b/mapper.sh index 70dade2..82fdbad 100755 --- a/mapper.sh +++ b/mapper.sh @@ -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() {