mirror of
https://github.com/bckelley/blueberry-pma-theme.git
synced 2026-08-24 03:04:11 -05:00
Update create-release to work with version numbers from theme.json
Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
This commit is contained in:
+5
-1
@@ -64,7 +64,11 @@ while [ $# -gt 0 ] ; do
|
||||
esac
|
||||
done
|
||||
|
||||
VERSION=`php -r "include '$THEME/info.inc.php'; echo \\\$theme_full_version;"`
|
||||
if [ ! -f "$THEME/info.inc.php" ]; then
|
||||
VERSION=`php -r "echo json_decode(file_get_contents('$THEME/theme.json'), true)['version'];"`
|
||||
else
|
||||
VERSION=`php -r "include '$THEME/info.inc.php'; echo \\\$theme_full_version;"`
|
||||
fi
|
||||
NAME=$THEME-$VERSION
|
||||
|
||||
echo "Creating release for $THEME $VERSION ($NAME)"
|
||||
|
||||
Reference in New Issue
Block a user