#!/bin/bash echo "=== repo:" curl -sL --max-time 60 "https://api.github.com/repos/supergrub/supergrub" \ | python3 -c "import sys,json; d=json.load(sys.stdin); print('name:',d.get('full_name'),'| default:',d.get('default_branch'),'| size:',d.get('size'),'KB'); print('desc:',d.get('description'))" echo "=== tags:" curl -sL --max-time 60 "https://api.github.com/repos/supergrub/supergrub/tags?per_page=10" \ | python3 -c "import sys,json; [print(' ', t['name']) for t in json.load(sys.stdin)]" echo "=== root contents:" curl -sL --max-time 60 "https://api.github.com/repos/supergrub/supergrub/contents/" \ | python3 -c "import sys,json; [print(' %-24s %s' % (e['name'], e['type'])) for e in json.load(sys.stdin)]" echo "=== supergrubdisk.org reachable?" curl -sI --max-time 30 https://www.supergrubdisk.org/ | head -3