[generator] Fix boolean action options handling

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin
2025-12-05 13:27:29 +07:00
committed by Konstantin Pastbin
parent 0237751afe
commit 2dafdd4338

View File

@@ -33,13 +33,13 @@ cp var/etc/map_generator.ini.prod var/etc/map_generator.ini
GENARGS=""
if [ $MWMTEST -gt 0 ]; then
if [ $MWMTEST == "true" ]; then
echo "Marking as a test (non-prod) generation"
# TODO: output test maps into e.g. osm-maps-test/ and use a different generation.log
GENARGS="$GENARGS -s=test"
fi
if [ $MWMCONTINUE -gt 0 ]; then
if [ $MWMCONTINUE == "true" ]; then
echo "Continuing from preexisting generator run"
GENARGS="$GENARGS --continue"
fi