This commit is contained in:
Hadi
2025-03-27 10:37:07 +01:00
parent b2041e6d1d
commit 609ca25d8b
+2 -1
View File
@@ -48,9 +48,10 @@ jobs:
fi
fi
# If le fichier contient _animated, il doit y avoir un fichier png ou jpg qui contient le même nom et _static à la place de _animated
if [[ $basename == *"_animated"* ]]; then
t=$(echo "$basename" | sed 's/animated/static/')
if [ ! -f "${t}.png" ] || [ ! -f "${t}.jpg" ]; then
if [ ! -f "${t}.png" ] && [ ! -f "${t}.jpg" ]; then
echo "❌ Error: $file has a animated tag but no png or jpg file"
exit 1
fi