milis/bin/gitrepo_boyut

3 lines
194 B
Plaintext
Executable File

echo "kullanim: gitrepo_boyut hesap repo"
echo https://github.com/$1/$2 | perl -ne 'print $1 if m!([^/]+/[^/]+?)(?:\.git)?$!' | xargs -i curl -s -k https://api.github.com/repos/'{}' | grep size