diff options
author | Marcel Amirault <mamirault@gitlab.com> | 2021-04-14 10:01:28 +0300 |
---|---|---|
committer | Marcel Amirault <mamirault@gitlab.com> | 2021-04-14 10:01:28 +0300 |
commit | 27518eed2072f9285169e2bdd8feb1ee342ea4f7 (patch) | |
tree | 408c0ac82cd91e9fc736a1efb811cdb7f0aefb59 /tasks | |
parent | 0a839748d9eb079563e371988895ecc3b8b85d38 (diff) |
Stop testing for unlinked files
We only need to search for unlinked images.
Diffstat (limited to 'tasks')
-rwxr-xr-x | tasks/unlinked-images.sh (renamed from tasks/unlinked-files.sh) | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tasks/unlinked-files.sh b/tasks/unlinked-images.sh index 6310b641..d7c9f704 100755 --- a/tasks/unlinked-files.sh +++ b/tasks/unlinked-images.sh @@ -1,3 +1,3 @@ -for FILE in $(git ls-files ./$1/*.png ./$1/**/*.gif ./$1/**/*.jpg ./$1/**/*.md); do +for FILE in $(git ls-files ./$1/*.png ./$1/**/*.gif ./$1/**/*.jpg); do git grep $(basename "$FILE") > /dev/null || echo "Unlinked file: $FILE" done |