From 14e314e1bc58854fd42379aa7bb331fa2da33a45 Mon Sep 17 00:00:00 2001 From: est31 Date: Sun, 17 Jan 2016 17:50:27 +0100 Subject: [PATCH] Abort if minetestmapper fails If one instance of minetestmapper fails, we should abort --- mapper.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mapper.sh b/mapper.sh index 1e6bd3c..adafe1a 100755 --- a/mapper.sh +++ b/mapper.sh @@ -40,6 +40,10 @@ do posx=$(($spawnx+$tilesize*($x-$tilenum/2))) posy=$(($spawny+$tilesize*($tilenum/2-$y))) $mapperpath ${MAPPERPARAMS} -i ${MAPDIR} --geometry ${posx},${posy}+${tilesize}+${tilesize} -o ${tiledir}/20/map_${x}_${y}.png + if [ $? -ne 0 ]; then + echo "minetestmapper exited with non zero exit code, aborting." + exit 1 + fi done done