Skip to content

Commit fc97f5b

Browse files
feat(core): allow to set github details at runtime with env vars (#3708)
1 parent ad8fc3a commit fc97f5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

linuxgsm.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ userinput2="${2}"
4747
## GitHub Branch Select
4848
# Allows for the use of different function files
4949
# from a different repo and/or branch.
50-
githubuser="GameServerManagers"
51-
githubrepo="LinuxGSM"
52-
githubbranch="master"
50+
[ -n "${LGSM_GITHUBUSER}" ] && githubuser="${LGSM_GITHUBUSER}" || githubuser="GameServerManagers"
51+
[ -n "${LGSM_GITHUBREPO}" ] && githubrepo="${LGSM_GITHUBREPO}" || githubrepo="LinuxGSM"
52+
[ -n "${LGSM_GITHUBBRANCH}" ] && githubbranch="${LGSM_GITHUBBRANCH}" || githubbranch="master"
5353

5454
# Core function that is required first.
5555
core_functions.sh(){

0 commit comments

Comments
 (0)