diff options
author | Marcel Amirault <mamirault@gitlab.com> | 2020-12-01 09:31:40 +0300 |
---|---|---|
committer | Evan Read <eread@gitlab.com> | 2020-12-01 09:31:40 +0300 |
commit | 3a2b103758bd3cdb060f424674a46be38194c816 (patch) | |
tree | bcce954094897c690110486cf926a6dbec6ab3c1 /tasks | |
parent | 6efa4fb798ce9be931e8fcd6d8d9c9727b711082 (diff) |
Create job to test for unlinked images
Diffstat (limited to 'tasks')
-rwxr-xr-x | tasks/unlinked-images.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tasks/unlinked-images.sh b/tasks/unlinked-images.sh new file mode 100755 index 00000000..91e5710f --- /dev/null +++ b/tasks/unlinked-images.sh @@ -0,0 +1,3 @@ +for FILE in $(git ls-files ./$1/*.png ./$1/*.gif ./$1/*.jpg); do + git grep $(basename "$FILE") > /dev/null || echo "Unlinked file: $FILE" +done |