From 346913c84b16ec5e97d8fbe3809b863f92f41b99 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Fri, 10 Jan 2025 18:43:39 +0100 Subject: hafas-m: use VRN by default --- bin/hafas-m | 12 +----------- 1 file changed, 1 insertion(+), 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 .'; - 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" ) -- cgit v1.2.3