Skip to content
Snippets Groups Projects
Commit 7e5d7fac authored by Yuanle Song's avatar Yuanle Song
Browse files

add print-loc.sh

parent 2e6ff9ff
Branches
No related merge requests found
#!/bin/sh
print_help_and_exit() {
echo "Usage: ./print-loc"
exit 1
}
# main()
if [ "$1" = "--help" ]; then
print_help_and_exit
fi
cloc --exclude-dir vendor .
if [ $? -ne 0 ]; then
echo "Error: require cloc program. Try sudo apt-get install -y cloc"
fi
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment