diff options
author | epoch <epoch@hacking.allowed.org> | 2020-01-21 10:05:30 -0600 |
---|---|---|
committer | epoch <epoch@hacking.allowed.org> | 2020-01-21 10:05:30 -0600 |
commit | f9c00d204d42c595e740bf3b8b7e7540f3fe6afb (patch) | |
tree | ea6b2491c46b2d7282302a06f40b9752fd9934ad /getsrv | |
parent | 7fb85b98ac81064a38632e1501b72818fcc00f89 (diff) | |
download | uritools-f9c00d204d42c595e740bf3b8b7e7540f3fe6afb.tar.gz uritools-f9c00d204d42c595e740bf3b8b7e7540f3fe6afb.zip |
got rid of "fuck" in an error message. and added a comment to partially explain a bit of magic.
Diffstat (limited to 'getsrv')
-rwxr-xr-x | getsrv | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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. |