mirror of
https://github.com/est31/leaftest.git
synced 2024-11-15 07:00:28 +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)))
|
posx=$(($spawnx+$tilesize*($x-$tilenum/2)))
|
||||||
posy=$(($spawny+$tilesize*($tilenum/2-$y)))
|
posy=$(($spawny+$tilesize*($tilenum/2-$y)))
|
||||||
$mapperpath ${MAPPERPARAMS} -i ${MAPDIR} --geometry ${posx},${posy}+${tilesize}+${tilesize} -o ${tiledir}/20/map_${x}_${y}.png
|
$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
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user