changeset 10583:aa29f6c3a587

<oerjan> sled bin/metar//s,head,shuf,
author HackBot
date Tue, 04 Apr 2017 03:20:29 +0000
parents 55911f37617f
children 92485ee6e00c
files bin/metar
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/metar	Mon Apr 03 22:33:43 2017 +0000
+++ b/bin/metar	Tue Apr 04 03:20:29 2017 +0000
@@ -1,3 +1,3 @@
 #!/bin/bash
-icao="$(airport "$*" | sed -e "s/.*, //;s/)//" | head -n 1)"
+icao="$(airport "$*" | sed -e "s/.*, //;s/)//" | shuf -n 1)"
 echo lambdabot: @metar "${icao:-$1}"