Browse Source

allow to set github user, repo and branch at runtime with 3 env var (LGSM_GITHUBREPO, LGSM_GITHUBUSER, LGSM_GITHUBBRANCH) instead of editing variable in source file

pull/3708/head
StudioEtrange 4 years ago
parent
commit
c7f2f5b5d1
  1. 6
      linuxgsm.sh

6
linuxgsm.sh

@ -47,9 +47,9 @@ userinput2="${2}"
## GitHub Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="GameServerManagers"
githubrepo="LinuxGSM"
githubbranch="master"
[ -n "${LGSM_GITHUBUSER}" ] && githubuser="${LGSM_GITHUBUSER}" || githubuser="GameServerManagers"
[ -n "${LGSM_GITHUBREPO}" ] && githubrepo="${LGSM_GITHUBREPO}" || githubrepo="LinuxGSM"
[ -n "${LGSM_GITHUBBRANCH}" ] && githubbranch="${LGSM_GITHUBBRANCH}" || githubbranch="master"
# Core function that is required first.
core_functions.sh(){

Loading…
Cancel
Save