]> git.netwichtig.de Git - user/henk/code/shell/rif.git/blobdiff - rif-checkfriends.sh
Add script to listfriends and to import friends
[user/henk/code/shell/rif.git] / rif-checkfriends.sh
old mode 100644 (file)
new mode 100755 (executable)
index af7e4d6..24bb12f
@@ -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
 )