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