Skip to content

Commit

Permalink
Make script work from any directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ayberkt committed Jul 17, 2024
1 parent 190c2d8 commit f06ef9b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions count-agda-files-and-lines
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
git ls-files source | grep agda | wc -l
git ls-files source | grep agda | xargs cat | wc -l
#!/bin/bash

ROOT_DIR=$(git rev-parse --show-toplevel)

git ls-files $ROOT_DIR/source | grep agda | wc -l
git ls-files $ROOT_DIR/source | grep agda | xargs cat | wc -l

0 comments on commit f06ef9b

Please sign in to comment.