summaryrefslogtreecommitdiff
path: root/rif-checkfriends.sh
diff options
context:
space:
mode:
authorNico Schottelius <nico@nico-notebook.schottelius.org>2019-09-10 02:03:49 +0900
committerNico Schottelius <nico@nico-notebook.schottelius.org>2019-09-10 02:03:49 +0900
commit5e7312aca321c8fee753f0734144923f1d8f55ad (patch)
tree41a3f5888907846b32f38b05018751860c9bfd5c /rif-checkfriends.sh
parent3b8e2bff869096edf9ab0dead1c61eeae26a3d4f (diff)
Add script to listfriends and to import friends
Diffstat (limited to 'rif-checkfriends.sh')
-rwxr-xr-x[-rw-r--r--]rif-checkfriends.sh15
1 files changed, 8 insertions, 7 deletions
diff --git a/rif-checkfriends.sh b/rif-checkfriends.sh
index af7e4d6..24bb12f 100644..100755
--- a/rif-checkfriends.sh
+++ b/rif-checkfriends.sh
@@ -3,12 +3,13 @@
gpg --list-keys --with-colons | grep RIF | awk -F: '{ print $10 }' | sed 's/\\x3a/:/' | (
while read line
- do name=$(echo $line | sed 's/\(.*\)(.*/\1/')
- # Assume by default offline
- online=offline
- url=$(echo $line | sed -e 's/.*(RIF //' -e 's/).*//')
- echo "Checking $name on $url ..."
- curl -s "$url" > /dev/null && online=online
- echo $name is $online
+ do
+ name=$(echo $line | sed 's/\(.*\)(.*/\1/')
+ # Assume by default offline
+ online=offline
+ url=$(echo $line | sed -e 's/.*(RIF //' -e 's/).*//')
+ echo "Checking $name on $url ..."
+ curl -6 -s "$url" > /dev/null && online=online
+ echo $name is $online
done
)