Server-Root/attach_modules.sh
2019-10-13 21:59:43 +02:00

21 lines
541 B
Bash
Executable File

#!/bin/bash
#General modules should be set to their versions
git reset --hard
#git submodule foreach -q --recursive 'git reset --hard'
#git submodule update --init --recursive --force
#git submodule update --init --remote --recursive --force TeaSpeak
cd TeaSpeak
echo "Building TeaSpeak at version $(git rev-parse HEAD)"
cd ..
echo "Updating submodules"
#git submodule update --init --recursive
git submodule update --init --checkout --recursive -f
[[ $? -ne 0 ]] && {
echo "Failed to update submodules. Aborting"
exit 1
}
exit 0