Donmclean
4/25/2018 - 9:15 AM

get total lines of code in repo

get total lines of code in repo

### REQUIREMENTS: MUST HAVE cloc INSTALLED!!! -> (brew install cloc)
### USAGE: sh cloc.sh GIT_REPO_URL

#!/usr/bin/env bash 
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