mirror of
https://git.adityakumar.xyz/sizeof.git
synced 2025-02-19 16:20:02 +00:00
8 lines
143 B
Bash
8 lines
143 B
Bash
#!/bin/sh
|
|
|
|
sizeof() {
|
|
curl -s https://api.github.com/repos/$1 | jq '.size' | numfmt --to-iec --from-unit=1024
|
|
}
|
|
|
|
size=$(sizeof $1)
|
|
echo $size
|