#!/bin/sh

set -eu
cd "${0%/*}/.."

# Nothing missing?  Do nothing.
git submodule status vendor | grep -q ^- || exit 0

git submodule update --init --checkout 'vendor/*'
