Check Size of a Github Repo
Just a shell script. Requirements: curl, jq, GNU Coreutils #!/bin/sh sizeof() { curl -s https://api.github.com/repos/$1 | jq '.size' | numfmt --to=iec --from-unit=1024 } size=$(sizeof $1) echo $size Usage Pass username/repo as argument to the...
Feb 18, 20211 min read1
