summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2025-01-10 18:43:39 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2025-01-10 18:43:39 +0100
commit346913c84b16ec5e97d8fbe3809b863f92f41b99 (patch)
tree89c70b9a67104713a0b582be63a80bc8015ff66a
parent3b712427964d187605ea114d15852cb1c0978648 (diff)
hafas-m: use VRN by default
-rwxr-xr-xbin/hafas-m12
1 files changed, 1 insertions, 11 deletions
diff --git a/bin/hafas-m b/bin/hafas-m
index a6899b0..d2344ed 100755
--- a/bin/hafas-m
+++ b/bin/hafas-m
@@ -79,17 +79,7 @@ if ($list_services) {
exit 0;
}
-if ( not $service ) {
- say STDERR 'Note: You have called hafas-m without specifying a service.';
- say STDERR q{};
- say STDERR 'Unfortunately, the previous default service (DB HAFAS)';
- say STDERR 'is no more, and there is no generic replacement available.';
- say STDERR q{};
- say STDERR 'Please use "hafas-m --list" to list supported services,';
- say STDERR 'and then select one via -s <service>.';
- say STDERR 'Falling back to ÖBB for now.';
- $service = 'ÖBB';
-}
+$service //= 'VRN';
if ($use_cache) {
my $cache_path = ( $ENV{XDG_CACHE_HOME} // "$ENV{HOME}/.cache" )