From 4b3cd7e612cb511f0d714b9ee251d0c20fb23e73 Mon Sep 17 00:00:00 2001
From: Martin Schroschk <martin.schroschk@tu-dresden.de>
Date: Wed, 24 Aug 2022 14:22:44 +0200
Subject: [PATCH] Debug

---
 doc.zih.tu-dresden.de/util/check-filesize.sh | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/doc.zih.tu-dresden.de/util/check-filesize.sh b/doc.zih.tu-dresden.de/util/check-filesize.sh
index 863a27094..22d11cfe7 100755
--- a/doc.zih.tu-dresden.de/util/check-filesize.sh
+++ b/doc.zih.tu-dresden.de/util/check-filesize.sh
@@ -35,11 +35,10 @@ large_files_present=false
 branch="origin/${CI_MERGE_REQUEST_TARGET_BRANCH_NAME:-preview}"
 source_hash=`git merge-base HEAD "$branch"`
 
-gitlfsfiles=$(git lfs ls-files -n)
-
 for f in $(git diff $source_hash --name-only); do
-    if [[ "$gitlfsfiles" =~ .*"$f".* ]]; then
-      echo "It's there."
+    if [[ "$f" =~ .*".webm" ]] || [[ "$f" =~ .*".mp4" ]] ; then
+        echo "Skip file in webm or mp4 format cause it is in git lfs."
+        continue
     fi
     fs=$(wc -c $f | awk '{print $1}')
     if [ $fs -gt 1048576 ]; then
-- 
GitLab