|
@ -4,7 +4,7 @@ |
|
|
# Author: Daniel Gibbs |
|
|
# Author: Daniel Gibbs |
|
|
# Contributor: Summit Singh Thakur |
|
|
# Contributor: Summit Singh Thakur |
|
|
# Website: http://gameservermanagers.com |
|
|
# Website: http://gameservermanagers.com |
|
|
version="121215" |
|
|
version="201215" |
|
|
|
|
|
|
|
|
#### Variables #### |
|
|
#### Variables #### |
|
|
|
|
|
|
|
@ -49,7 +49,7 @@ engine="source" |
|
|
|
|
|
|
|
|
# Directories |
|
|
# Directories |
|
|
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))" |
|
|
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))" |
|
|
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}")) |
|
|
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" |
|
|
lockselfname=".${servicename}.lock" |
|
|
lockselfname=".${servicename}.lock" |
|
|
filesdir="${rootdir}/serverfiles" |
|
|
filesdir="${rootdir}/serverfiles" |
|
|
systemdir="${filesdir}/left4dead" |
|
|
systemdir="${filesdir}/left4dead" |
|
@ -101,7 +101,7 @@ if [ ! -f "${filepath}" ]; then |
|
|
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1) |
|
|
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1) |
|
|
if [ $? -ne 0 ]; then |
|
|
if [ $? -ne 0 ]; then |
|
|
echo -e "\e[0;31mFAIL\e[0m\n" |
|
|
echo -e "\e[0;31mFAIL\e[0m\n" |
|
|
echo " ${curl}"|grep "curl:" |
|
|
echo "${curl}" |
|
|
echo -e "${githuburl}\n" |
|
|
echo -e "${githuburl}\n" |
|
|
exit |
|
|
exit |
|
|
else |
|
|
else |
|
|