Skip to content

Commit

Permalink
Exit script if submodule not initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
diogotcorreia committed Jan 24, 2024
1 parent 36b8482 commit 3024b82
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
path = Velocity
url = https://github.com/PaperMC/Velocity.git
shallow = true
ignore = all
6 changes: 6 additions & 0 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 3024b82

Please sign in to comment.