Skip to content

Commit

Permalink
build: Check for any submodules uninitialized, not just mantle
Browse files Browse the repository at this point in the history
Fixup for removing mantle git submodule.
  • Loading branch information
cgwalters committed Feb 27, 2020
1 parent 739f1f1 commit bfcf0c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ _prep_make_and_make_install() {
mkdir -p /usr/app/
rsync -rlv "${srcdir}"/ostree-releng-scripts/ /usr/app/ostree-releng-scripts/

if [ "$(git submodule status mantle | head -c1)" == "-" ]; then
if git submodule status | grep -qEe '^-'; then
echo -e "\033[1merror: submodules not initialized. Run: git submodule update --init\033[0m" 1>&2
exit 1
fi
Expand Down

0 comments on commit bfcf0c3

Please sign in to comment.