diff --git a/.gitmodules b/.gitmodules index 5845c0f..2f24330 100644 --- a/.gitmodules +++ b/.gitmodules @@ -2,3 +2,4 @@ path = Velocity url = https://github.com/PaperMC/Velocity.git shallow = true + ignore = all diff --git a/publish.sh b/publish.sh index 104f290..fa4745f 100755 --- a/publish.sh +++ b/publish.sh @@ -1,6 +1,12 @@ #! /usr/bin/env bash set -e +if [ -n "$(git submodule status | grep '^-')" ]; then + echo 'Error: git submodule not initialized' + echo 'Please run `git submodule init` followed by `git submodule update`' + exit 1 +fi + cd Velocity for patch in ../patches/*.patch; do