summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2025-09-19 19:18:48 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2025-09-19 19:18:48 +0200
commit13ad573b257080756fd85d7bd8a5d9739ba57023 (patch)
treee3a1f54aea4f7e0f8a14988defa964096273ba51
parenta76b0e414138263b1e4cb16ee93f5b27dcc766f2 (diff)
dbris-m: Do not print station name with --(raw-)json
-rwxr-xr-xbin/dbris-m4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/dbris-m b/bin/dbris-m
index d219403..a45939f 100755
--- a/bin/dbris-m
+++ b/bin/dbris-m
@@ -126,7 +126,9 @@ else {
my $found;
for my $result ( $status->results ) {
if ( defined $result->eva ) {
- if ( lc( $result->name ) ne lc( $opt{station} ) ) {
+ if ( lc( $result->name ) ne lc( $opt{station} )
+ and not( $json_output or $raw_json_output ) )
+ {
say $result->name;
}
$opt{station} = $result;