4 changed files with 87 additions and 452 deletions
@ -1,15 +1,37 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM core_getopt.sh function |
# LGSM core_functions.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="271215" |
lgsm_version="271215" |
||||
|
|
||||
# Description: Redirect to new core_getopt.sh |
# Description: Redirect to new core_functions.sh |
||||
|
|
||||
core_getopt.sh(){ |
core_functions(){ |
||||
|
# Functions are defined in core_functions.sh. |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_fetch_core_dl |
||||
|
} |
||||
|
|
||||
|
core_dl.sh(){ |
||||
# Functions are defined in core_functions.sh. |
# Functions are defined in core_functions.sh. |
||||
functionfile="${FUNCNAME}" |
functionfile="${FUNCNAME}" |
||||
fn_runfunction |
fn_fetch_core_dl |
||||
|
} |
||||
|
|
||||
|
core_getopt.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_fetch_core_dl |
||||
|
} |
||||
|
|
||||
|
core_messages.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_fetch_core_dl |
||||
|
} |
||||
|
|
||||
|
command_update_functions.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_fetch_core_dl |
||||
} |
} |
||||
|
|
||||
|
core_functions.sh |
||||
core_getopt.sh |
core_getopt.sh |
@ -1,22 +1,38 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_update_functions.sh function |
# LGSM core_functions.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="230116" |
lgsm_version="271215" |
||||
|
|
||||
# Description: LEGACY FUNCTION Deletes the functions dir to allow re-downloading of functions from GitHub. |
# Description: Redirect to new core_functions.sh |
||||
|
|
||||
fn_print_dots "Updating functions" |
core_functions(){ |
||||
fn_scriptlog "Updating functions" |
# Functions are defined in core_functions.sh. |
||||
sleep 1 |
functionfile="${FUNCNAME}" |
||||
echo -ne "\n" |
fn_fetch_core_dl |
||||
rm -rfv "${rootdir}/functions/"* |
} |
||||
exitcode=$? |
|
||||
if [ "${exitcode}" == "0" ]; then |
core_dl.sh(){ |
||||
fn_print_ok "Updating functions" |
# Functions are defined in core_functions.sh. |
||||
fn_scriptlog "Success! Updating functions" |
functionfile="${FUNCNAME}" |
||||
else |
fn_fetch_core_dl |
||||
fn_print_fail "Updating functions" |
} |
||||
fn_scriptlog "Failure! Updating functions" |
|
||||
fi |
core_getopt.sh(){ |
||||
echo -ne "\n" |
functionfile="${FUNCNAME}" |
||||
|
fn_fetch_core_dl |
||||
|
} |
||||
|
|
||||
|
core_messages.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_fetch_core_dl |
||||
|
} |
||||
|
|
||||
|
command_update_functions.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_fetch_core_dl |
||||
|
} |
||||
|
|
||||
|
core_functions.sh |
||||
|
command_update_functions.sh |
||||
|
|
||||
|
Loading…
Reference in new issue