Add check for screen.png on lint-theme.sh

This commit is contained in:
William Desportes
2023-01-01 11:46:44 +04:00
parent 1f5ffeda2a
commit 7f16fc7a03
+7
View File
@@ -28,6 +28,13 @@ do_lint() {
cd ..
return 0
fi
if [ ! -f screen.png ] ; then
echo " * Missing screen.png, skipping further checks!"
cd ..
return 1
fi
JVERSION=`php -r "echo json_decode(file_get_contents('theme.json'), true)['version'];"`
echo " * Version from theme.json: $JVERSION"
if [ -n "$VERSION" -a "$JVERSION" != "$VERSION" ] ; then