From 381733bb1f7c21f70ae5d7cca43244b160a2b36a Mon Sep 17 00:00:00 2001 From: clo4 Date: Tue, 12 Mar 2024 19:45:18 +1100 Subject: [PATCH] Add warning to artifacts with uncommitted changes --- build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.sh b/build.sh index 195e688..89a8851 100755 --- a/build.sh +++ b/build.sh @@ -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