From 3a2b103758bd3cdb060f424674a46be38194c816 Mon Sep 17 00:00:00 2001 From: Marcel Amirault Date: Tue, 1 Dec 2020 06:31:40 +0000 Subject: Create job to test for unlinked images --- tasks/unlinked-images.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 tasks/unlinked-images.sh (limited to 'tasks') 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 -- cgit v1.2.3