Skip to content

Commit

Permalink
Add warning to artifacts with uncommitted changes
Browse files Browse the repository at this point in the history
  • Loading branch information
clo4 committed Mar 12, 2024
1 parent 83ea472 commit 381733b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ for pack in $packs; do
packversion=$(jq -r .version $dir/version.json)
mc0=$(jq -r .minecraft[0] $dir/version.json)
mc1=$(jq -r .minecraft[1] $dir/version.json)

if ! git diff --quiet --exit-code $dir; then
name+="__DIRTY__DO_NOT_RELEASE"
fi

# zip really wants to include the dir heirarchy, so we have to cd into the directory
cd $dir
Expand Down

0 comments on commit 381733b

Please sign in to comment.