mirror of
https://github.com/anotherhadi/awesome-wallpapers.git
synced 2026-10-05 18:28:25 +02:00
edit workflow
This commit is contained in:
@@ -42,15 +42,15 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $basename == *"_static"* ]]; then
|
if [[ $basename == *"_static"* ]]; then
|
||||||
if [ ! -f "${basename}*.gif" ]; then
|
t=$(echo "$basename" | sed 's/_static/_animated/')
|
||||||
|
if [ ! -f "${t}.gif" ] ; then
|
||||||
echo "❌ Error: $file has a static tag but no gif file"
|
echo "❌ Error: $file has a static tag but no gif file"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
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
|
if [[ $basename == *"_animated"* ]]; then
|
||||||
t=$(echo "$basename" | sed 's/animated/static/')
|
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"
|
echo "❌ Error: $file has a animated tag but no png or jpg file"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user