Skip to content

Commit

Permalink
Update hash file for previous step, fix check_datagen.sh to catch it
Browse files Browse the repository at this point in the history
  • Loading branch information
williewillus committed Sep 18, 2023
1 parent 46d6273 commit 1a7915d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions scripts/check_datagen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ set -e

./gradlew :Fabric:runXplatDatagen :Forge:runData :Fabric:runFabricDatagen || exit 1

# Only check status of the assets and data folders,
# because as of 1.19 rerunning datagen will
# always update the timestamp in the .cache files (Mojang why)
STATUS="$(git status --porcelain Xplat/src/generated/resources/* Fabric/src/generated/resources/* Forge/src/generated/resources/*)"
STATUS="$(git status --porcelain Xplat/src/generated/resources Fabric/src/generated/resources Forge/src/generated/resources)"
if [ -z "$STATUS" ]
then
echo "Datagen ok"
Expand Down

0 comments on commit 1a7915d

Please sign in to comment.