mirror of
https://github.com/bckelley/blueberry-pma-theme.git
synced 2026-08-24 03:04:11 -05:00
Add check for screen.png on lint-theme.sh
This commit is contained in:
@@ -28,6 +28,13 @@ do_lint() {
|
|||||||
cd ..
|
cd ..
|
||||||
return 0
|
return 0
|
||||||
fi
|
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'];"`
|
JVERSION=`php -r "echo json_decode(file_get_contents('theme.json'), true)['version'];"`
|
||||||
echo " * Version from theme.json: $JVERSION"
|
echo " * Version from theme.json: $JVERSION"
|
||||||
if [ -n "$VERSION" -a "$JVERSION" != "$VERSION" ] ; then
|
if [ -n "$VERSION" -a "$JVERSION" != "$VERSION" ] ; then
|
||||||
|
|||||||
Reference in New Issue
Block a user