From f9c00d204d42c595e740bf3b8b7e7540f3fe6afb Mon Sep 17 00:00:00 2001 From: epoch Date: Tue, 21 Jan 2020 10:05:30 -0600 Subject: got rid of "fuck" in an error message. and added a comment to partially explain a bit of magic. --- getsrv | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'getsrv') diff --git a/getsrv b/getsrv index cb6daeb..019cdf0 100755 --- a/getsrv +++ b/getsrv @@ -19,7 +19,7 @@ elif which host >/dev/null;then host -t SRV "$record" | cut '-d ' -f5- echo "after host" >&2 else - echo "fuck me. how am I supposed to get a srv record without dig or host?" >&2 + echo "how am I supposed to get a srv record without dig or host? giving up." >&2 exit 1 fi | grep '^[0-9][0-9]* [0-9][0-9]*' \ | sort -rn \ @@ -34,3 +34,4 @@ fi | grep '^[0-9][0-9]* [0-9][0-9]*' \ | cut '-d ' -f2- \ | shuf \ | head -n1 \ +## that last pipeline tries to get pretty close to printing a properly weighted response, but not perfect. -- cgit v1.2.3