Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tasks
diff options
context:
space:
mode:
authorMarcel Amirault <mamirault@gitlab.com>2020-12-01 09:31:40 +0300
committerEvan Read <eread@gitlab.com>2020-12-01 09:31:40 +0300
commit3a2b103758bd3cdb060f424674a46be38194c816 (patch)
treebcce954094897c690110486cf926a6dbec6ab3c1 /tasks
parent6efa4fb798ce9be931e8fcd6d8d9c9727b711082 (diff)
Create job to test for unlinked images
Diffstat (limited to 'tasks')
-rwxr-xr-xtasks/unlinked-images.sh3
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