mirror of
https://github.com/est31/leaftest.git
synced 2024-12-22 17:00:39 +01:00
Abort if minetestmapper fails
If one instance of minetestmapper fails, we should abort
This commit is contained in:
parent
fd43a4f545
commit
14e314e1bc
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user