Server-Root/attach_modules.sh
2019-05-28 17:49:03 +02:00

13 lines
353 B
Bash
Executable File

#!/bin/bash
#The libs have no need to be attach to the master :)
cd TeaSpeak
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}"
git pull origin ${BRANCH}'