diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-05-03 11:39:43 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-05-03 11:39:43 +0200 |
commit | 743bcabebef3ac9d77160a65c752a1fe775ded81 (patch) | |
tree | 9d6342fb6d38cccc603e41a878479ffff9aef1b4 /scripts | |
parent | 206edce6f2922a5938e85fc361b682abf5a202e4 (diff) |
add check-hafas-urls helper script
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/check-hafas-urls | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/check-hafas-urls b/scripts/check-hafas-urls new file mode 100755 index 0000000..9c77e37 --- /dev/null +++ b/scripts/check-hafas-urls @@ -0,0 +1,20 @@ +#!/usr/bin/env zsh + +export PERL5LIB=lib + +checks="DB Berlin Jannowitzbrücke +NAHSH Flensburg Solitüde +NASA Wernigerode Hbf +NVV Kassel Hbf +ÖBB Wien Praterstern +RSAG Rostock Hbf +VBB Berlin Jannowitzbrücke +VBN Diepholz" + +echo $checks | while read service stop; do + echo -n "${service} ... " + if bin/hafas-m -s $service $stop > /dev/null; then + echo OK + fi +done + |