Server-Root/attach_modules.sh

13 lines
353 B
Bash
Raw Normal View History

2018-08-01 14:31:44 -04:00
#!/bin/bash
2019-05-28 11:49:03 -04:00
#The libs have no need to be attach to the master :)
cd TeaSpeak
2018-08-09 14:16:37 -04:00
git submodule foreach -q --recursive '
echo "Updating $name";
BRANCH=$(git config -f $toplevel/.gitmodules submodule.$name.branch || echo master)
if [ -z ${BRANCH} ]; then
BRANCH="master"
fi
git checkout ${BRANCH};
echo "git pull origin ${BRANCH}"
2019-05-28 11:49:03 -04:00
git pull origin ${BRANCH}'