blob: 62a3d5b294d2aa7bdec274eabb966b5cc4ca3df8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/sh
basedir="$(dirname "$0")"
[ "$(echo "$basedir" | cut -c1)" = '/' ] || basedir="$PWD/$basedir"
die()
{
echo "$*" >&2
exit 1
}
echo "Updating git submodules..."
cd "$basedir/.." || die "Failed to cd to basedir"
git submodule update --init || die "git submodule update failed"
exit 0
|