diff --git a/Insurgency/cfg/servers/_default.cfg b/Insurgency/cfg/servers/_default.cfg old mode 100644 new mode 100755 diff --git a/Insurgency/insserver b/Insurgency/insserver index 8c2b5b013..2cf4d2c9a 100755 --- a/Insurgency/insserver +++ b/Insurgency/insserver @@ -11,7 +11,7 @@ game="insurgency" gamename="Insurgency" #File fetching settings -githubuser="jballou" +githubuser="jaredballou" githubrepo="linuxgsm" githubbranch="master" @@ -75,10 +75,10 @@ fn_parms(){ fn_getgithubfile() { filename=$1 exec=$2 - url=${3:-$filename} + fileurl=${3:-$filename} filepath="${rootdir}/${filename}" filedir=$(dirname "${filepath}") - + download=0 # If file is missing, then download if [ ! -f "${filepath}" ] then @@ -92,16 +92,17 @@ fn_getgithubfile() { download=1 fi fi - if [ "$download" ] + if [ $download -gt 0 ] then if [ ! -d "${filedir}" ]; then mkdir -p "${filedir}" fi - echo -e " fetching ${filename}...\c" - wget -N /dev/null "https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${url}" -O "${filepath}" 2>&1 | grep -F HTTP | cut -c45- + url="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}" + echo -e " fetching ${filename} (${url})...\c" + wget -N /dev/null "${url}" -O "${filepath}" 2>&1 | grep -F HTTP | cut -c45- if [ "$exec" ] then - chmod +x "${functionpath}" + chmod +x "${filepath}" fi fi if [ "$exec" ]