From 41744e837c98c0da9780a83e63b1a6fc3c8bf983 Mon Sep 17 00:00:00 2001 From: Ilya Zverev Date: Thu, 9 Jul 2015 11:00:18 +0300 Subject: [PATCH] [generator] Show missing routing files only if they are expected --- tools/unix/test_planet.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tools/unix/test_planet.sh b/tools/unix/test_planet.sh index 8754ef6605..05a6c3c912 100755 --- a/tools/unix/test_planet.sh +++ b/tools/unix/test_planet.sh @@ -45,12 +45,14 @@ if [ -d "$TARGET/borders" ]; then [ ! -f "$TARGET/$MWM" ] && echo "$MWM" done fi -# Only display missing routing files for existing MWMs -for mwm in "$TARGET"/*.mwm; do - if [[ "$mwm" != *World* ]]; then - [ ! -f "$mwm.routing" ] && echo "$(basename "$mwm").routing" - fi -done +if [ -n "$(ls "$TARGET" | grep '\.mwm\.routing')" ]; then + # Only display missing routing files for existing MWMs + for mwm in "$TARGET"/*.mwm; do + if [[ "$mwm" != *World* ]]; then + [ ! -f "$mwm.routing" ] && echo "$(basename "$mwm").routing" + fi + done +fi # Step 3: run calc_statistics and check for sections echo