summaryrefslogtreecommitdiff
path: root/bin/hafas-m
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-03-31 16:50:03 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-03-31 16:50:03 +0200
commit0c57f93284293bca09c7e6ee54f0139cc5715afb (patch)
tree3ceab29a283e7c65dce7659671d53084e89ad473 /bin/hafas-m
parent6b575af0e63f4df5d6dd5e217aa2e7ae3bc114ed (diff)
Add BART service
Diffstat (limited to 'bin/hafas-m')
-rwxr-xr-xbin/hafas-m6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/hafas-m b/bin/hafas-m
index ac14110..8bed8e5 100755
--- a/bin/hafas-m
+++ b/bin/hafas-m
@@ -163,9 +163,11 @@ sub parse_mot_options {
if ($desc) {
for my $mot ( @{ $desc->{productbits} } ) {
if ( ref($mot) eq 'ARRAY' ) {
- printf( "%-10s %s\n", @{$mot} );
+ if ( $mot->[0] ne '_' ) {
+ printf( "%-10s %s\n", @{$mot} );
+ }
}
- else {
+ elsif ( $mot ne '_' ) {
say $mot;
}
}