|
|
@ -477,7 +477,7 @@ fn_fetch_file_github() { |
|
|
|
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${github_fileurl_dir}/${github_fileurl_name}" |
|
|
|
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${githubbranch}/${github_fileurl_dir}/${github_fileurl_name}" |
|
|
|
# If master branch will currently running LinuxGSM version to prevent "version mixing". This is ignored if a fork. |
|
|
|
elif [ "${githubbranch}" == "master" ] && [ "${githubuser}" == "GameServerManager" ] && [ "${commandname}" != "UPDATE-LGSM" ]; then |
|
|
|
elif [ "${githubbranch}" == "master" ] && [ "${githubuser}" == "GameServerManagers" ] && [ "${commandname}" != "UPDATE-LGSM" ]; then |
|
|
|
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${version}/${github_fileurl_dir}/${github_fileurl_name}" |
|
|
|
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${version}/${github_fileurl_dir}/${github_fileurl_name}" |
|
|
|
else |
|
|
@ -499,7 +499,7 @@ fn_fetch_file_github() { |
|
|
|
fn_check_file_github() { |
|
|
|
github_fileurl_dir="${1}" |
|
|
|
github_fileurl_name="${2}" |
|
|
|
if [ "${githubbranch}" == "master" ] && [ "${githubuser}" == "GameServerManager" ] && [ "${commandname}" != "UPDATE-LGSM" ]; then |
|
|
|
if [ "${githubbranch}" == "master" ] && [ "${githubuser}" == "GameServerManagers" ] && [ "${commandname}" != "UPDATE-LGSM" ]; then |
|
|
|
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${version}/${github_fileurl_dir}/${github_fileurl_name}" |
|
|
|
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${version}/${github_fileurl_dir}/${github_fileurl_name}" |
|
|
|
else |
|
|
@ -516,7 +516,7 @@ fn_fetch_config() { |
|
|
|
github_fileurl_dir="${1}" |
|
|
|
github_fileurl_name="${2}" |
|
|
|
# If master branch will currently running LinuxGSM version to prevent "version mixing". This is ignored if a fork. |
|
|
|
if [ "${githubbranch}" == "master" ] && [ "${githubuser}" == "GameServerManager" ] && [ "${commandname}" != "UPDATE-LGSM" ]; then |
|
|
|
if [ "${githubbranch}" == "master" ] && [ "${githubuser}" == "GameServerManagers" ] && [ "${commandname}" != "UPDATE-LGSM" ]; then |
|
|
|
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${version}/${github_fileurl_dir}/${github_fileurl_name}" |
|
|
|
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${version}/${github_fileurl_dir}/${github_fileurl_name}" |
|
|
|
else |
|
|
@ -540,7 +540,7 @@ fn_fetch_function() { |
|
|
|
github_fileurl_dir="lgsm/functions" |
|
|
|
github_fileurl_name="${functionfile}" |
|
|
|
# If master branch will currently running LinuxGSM version to prevent "version mixing". This is ignored if a fork. |
|
|
|
if [ "${githubbranch}" == "master" ] && [ "${githubuser}" == "GameServerManager" ] && [ "${commandname}" != "UPDATE-LGSM" ]; then |
|
|
|
if [ "${githubbranch}" == "master" ] && [ "${githubuser}" == "GameServerManagers" ] && [ "${commandname}" != "UPDATE-LGSM" ]; then |
|
|
|
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${version}/${github_fileurl_dir}/${github_fileurl_name}" |
|
|
|
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${version}/${github_fileurl_dir}/${github_fileurl_name}" |
|
|
|
else |
|
|
@ -564,7 +564,7 @@ fn_update_function() { |
|
|
|
github_fileurl_dir="lgsm/functions" |
|
|
|
github_fileurl_name="${functionfile}" |
|
|
|
# If master branch will currently running LinuxGSM version to prevent "version mixing". This is ignored if a fork. |
|
|
|
if [ "${githubbranch}" == "master" ] && [ "${githubuser}" == "GameServerManager" ] && [ "${commandname}" != "UPDATE-LGSM" ]; then |
|
|
|
if [ "${githubbranch}" == "master" ] && [ "${githubuser}" == "GameServerManagers" ] && [ "${commandname}" != "UPDATE-LGSM" ]; then |
|
|
|
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${version}/${github_fileurl_dir}/${github_fileurl_name}" |
|
|
|
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${version}/${github_fileurl_dir}/${github_fileurl_name}" |
|
|
|
else |
|
|
|