Fixed build script

This commit is contained in:
WolverinDEV 2020-04-15 15:14:00 +02:00
parent 10280da419
commit afa2b40b50

View File

@ -6,6 +6,18 @@ if [[ -z "${BUILD_PATH}" ]]; then
exit 1
fi
rm -r env
mkdir env && de env
[[ $? -ne 0 ]] && {
echo "Failed to create the env"
exit 1
}
cp -r ../../../git-teaspeak/default_files/{certs,commanddocs,geoloc,resources,*.sh} .
[[ $? -ne 0 ]] && {
echo "Failed to copy env"
exit 1
}
./generate_version.sh "${BUILD_PATH}" || {
echo "Failed to generate version! ($?)"
exit 1