Server-Root/attach_modules.sh

21 lines
541 B
Bash
Raw Normal View History

2018-08-01 20:31:44 +02:00
#!/bin/bash
2019-05-28 19:07:55 +02:00
#General modules should be set to their versions
2019-07-17 19:53:08 +02:00
git reset --hard
2019-10-13 18:52:17 +02:00
#git submodule foreach -q --recursive 'git reset --hard'
#git submodule update --init --recursive --force
2019-07-17 19:53:08 +02:00
#git submodule update --init --remote --recursive --force TeaSpeak
2019-05-28 19:07:55 +02:00
2019-05-28 17:49:03 +02:00
cd TeaSpeak
2019-10-13 18:52:17 +02:00
echo "Building TeaSpeak at version $(git rev-parse HEAD)"
2019-07-18 22:10:46 +02:00
cd ..
2019-10-13 18:52:17 +02:00
2019-10-13 20:27:09 +02:00
echo "Updating submodules"
2019-10-13 21:59:43 +02:00
#git submodule update --init --recursive
git submodule update --init --checkout --recursive -f
2019-10-13 18:52:17 +02:00
[[ $? -ne 0 ]] && {
echo "Failed to update submodules. Aborting"
exit 1
}
2019-10-13 20:06:33 +02:00
exit 0