diff options
author | Ilya Zverev <zverik@textual.ru> | 2015-07-09 11:00:18 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:55:11 +0300 |
commit | 41744e837c98c0da9780a83e63b1a6fc3c8bf983 (patch) | |
tree | bf9573973c47db3c29a194b794f5d67f5d5288e1 /tools | |
parent | 1c355a018de90b624248837f9d7695e5503f7af8 (diff) |
[generator] Show missing routing files only if they are expected
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/unix/test_planet.sh | 14 |
1 files 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 |