commit d2d7b17b5dc63bcb790d00bf91298c8ae54cfed4 parent 69b4c0de4718a295cd764ee31d52d1f1f6f1c5d2 Author: hhvn <dev@haydenvh.com> Date: Sat, 27 Mar 2021 19:40:30 +0000 .s/b/rfclookup: fix Diffstat:
M | .scripts/bin/rfclookup | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.scripts/bin/rfclookup b/.scripts/bin/rfclookup @@ -22,7 +22,8 @@ # rfclookup.sh -n <number> [ "$1" = "-s" ] && { - curl https://www.ietf.org/download/rfc-index.txt | tr '\n' '\t' | sed 's/\t\t/\n/g' | tr '\t' ' ' | tr -s ' ' | grep '^[0-9][0-9][0-9][0-9] ' | grep -iE "$2" + curl -i https://www.ietf.org/download/rfc-index.txt | tr '\n' '\t' | sed 's/\t\t/\n/g' | tr '\t' ' ' | tr -s ' ' | grep '^[0-9][0-9][0-9][0-9] ' | grep -iE "$2" + exit } || { curl https://www.ietf.org/rfc/rfc$2.txt }