Renames jwtcat to catjwt to avoid clash with 3rd party tool

This commit is contained in:
Jonathan Hodgson 2020-09-22 15:41:06 +01:00
parent d106799a8b
commit 77955b1e18

11
bin/.bin/webtest/catjwt Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
i=0
cat - | tr '.' '\n' | while read line; do
[ "$i" -eq 0 ] && echo -e "Header:\n-------"
[ "$i" -eq 1 ] && echo -e "Body:\n-----"
[ "$i" -eq 2 ] && break
echo "$line" | base64 -d 2> /dev/null | jq
i=$((i+1))
done