Last active
February 13, 2020 04:12
-
-
Save flymin/d383bf2804c8e24bbf204c2a8926efbd to your computer and use it in GitHub Desktop.
[LineCal] Calculate code line in a github repo #shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| git clone --depth 1 "$1" temp-linecount-repo | |
| printf "('temp-linecount-repo' will be deleted automatically)\n\n\n" | |
| cloc temp-linecount-repo | |
| rm -rf temp-linecount-repo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment