build.sh: properly test for mantle using git submodule
@@ -96,7 +96,7 @@ _prep_make_and_make_install() {
mkdir -p /usr/app/
rsync -rlv "${srcdir}"/ostree-releng-scripts/ /usr/app/ostree-releng-scripts/
- if ! test -f mantle/README.md; then
+ if [ "$(git submodule status mantle | head -c1)" == "-" ]; then
echo -e "\033[1merror: submodules not initialized. Run: git submodule update --init\033[0m" 1>&2
exit 1
fi
