Server-Root/attach_modules.sh

18 lines
574 B
Bash
Raw Normal View History

2018-08-01 14:31:44 -04:00
#!/bin/bash
2019-05-28 13:07:55 -04:00
#General modules should be set to their versions
git submodule update --init --recursive --force
2019-05-28 13:59:27 -04:00
git submodule update --init --remote --recursive --force TeaSpeak
2019-05-28 13:07:55 -04:00
2019-05-28 11:49:03 -04:00
#The libs have no need to be attach to the master :)
cd TeaSpeak
2019-05-28 13:07:55 -04:00
git submodule update --init --remote --recursive --force
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}'