#!/bin/sh sizeof() { curl -s https://api.github.com/repos/$1 | jq '.size' | numfmt --to-iec --from-unit=1024 } size=$(sizeof $1) echo $size