Skip to content

Commit 0bec0ca

Browse files
authored
feat: convert functions dir to modules dir (#4169)
* functions dir will be deleted after 14 days
1 parent d099e7e commit 0bec0ca

File tree

163 files changed

+5070
-441
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+5070
-441
lines changed

.github/workflows/version-check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
version=$(grep "version=" linuxgsm.sh | sed -e 's/version//g' | tr -d '="')
3-
modulesversion=$(grep "modulesversion=" lgsm/functions/core_functions.sh | sed -e 's/modulesversion//g' | tr -d '="')
3+
modulesversion=$(grep "modulesversion=" lgsm/modules/core_modules.sh | sed -e 's/modulesversion//g' | tr -d '="')
44

55
if [ "${version}" != "${modulesversion}" ]; then
66
echo "Error! LinuxGSM version mismatch"

lgsm/functions/core_dl.sh

100755100644
Lines changed: 51 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# fn_fetch_file "${remote_fileurl}" "${remote_fileurl_backup}" "${remote_fileurl_name}" "${remote_fileurl_backup_name}" "${local_filedir}" "${local_filename}" "${chmodx}" "${run}" "${forcedl}" "${hash}"
1818
# fn_fetch_file "http://example.com/file.tar.bz2" "http://example.com/file2.tar.bz2" "file.tar.bz2" "file2.tar.bz2" "/some/dir" "file.tar.bz2" "chmodx" "run" "forcedl" "10cd7353aa9d758a075c600a6dd193fd"
1919

20-
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
20+
moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
2121

2222
fn_dl_steamcmd() {
2323
fn_print_start_nl "${remotelocation}"
@@ -453,11 +453,13 @@ fn_fetch_file() {
453453
fi
454454
}
455455

456-
# GitHub file download functions.
456+
# GitHub file download modules.
457457
# Used to simplify downloading specific files from GitHub.
458458

459-
# github_fileurl_dir: the directory of the file in the GitHub: lgsm/functions
460-
# github_fileurl_name: the filename of the file to download from GitHub: core_messages.sh
459+
# github_file_url_dir: the directory of the file in the GitHub: lgsm/modules
460+
# github_file_url_name: the filename of the file to download from GitHub: core_messages.sh
461+
# github_file_url_dir: the directory of the file in the GitHub: lgsm/modules
462+
# github_file_url_name: the filename of the file to download from GitHub: core_messages.sh
461463
# githuburl: the full GitHub url
462464

463465
# remote_fileurl: The URL of the file: http://example.com/dl/File.tar.bz2
@@ -470,58 +472,58 @@ fn_fetch_file() {
470472

471473
# Fetches files from the Git repo.
472474
fn_fetch_file_github() {
473-
github_fileurl_dir="${1}"
474-
github_fileurl_name="${2}"
475+
github_file_url_dir="${1}"
476+
github_file_url_name="${2}"
475477
# For legacy versions - code can be removed at a future date
476478
if [ "${legacymode}" == "1" ]; then
477-
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${github_fileurl_dir}/${github_fileurl_name}"
478-
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${githubbranch}/${github_fileurl_dir}/${github_fileurl_name}"
479+
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${github_file_url_dir}/${github_file_url_name}"
480+
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${githubbranch}/${github_file_url_dir}/${github_file_url_name}"
479481
# If master branch will currently running LinuxGSM version to prevent "version mixing". This is ignored if a fork.
480482
elif [ "${githubbranch}" == "master" ] && [ "${githubuser}" == "GameServerManagers" ] && [ "${commandname}" != "UPDATE-LGSM" ]; then
481-
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${version}/${github_fileurl_dir}/${github_fileurl_name}"
482-
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${version}/${github_fileurl_dir}/${github_fileurl_name}"
483+
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${version}/${github_file_url_dir}/${github_file_url_name}"
484+
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${version}/${github_file_url_dir}/${github_file_url_name}"
483485
else
484-
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${github_fileurl_dir}/${github_fileurl_name}"
485-
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${githubbranch}/${github_fileurl_dir}/${github_fileurl_name}"
486+
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${github_file_url_dir}/${github_file_url_name}"
487+
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${githubbranch}/${github_file_url_dir}/${github_file_url_name}"
486488
fi
487489
remote_fileurl_name="GitHub"
488490
remote_fileurl_backup_name="Bitbucket"
489491
local_filedir="${3}"
490-
local_filename="${github_fileurl_name}"
492+
local_filename="${github_file_url_name}"
491493
chmodx="${4:-0}"
492494
run="${5:-0}"
493495
forcedl="${6:-0}"
494496
hash="${7:-0}"
495-
# Passes vars to the file download function.
497+
# Passes vars to the file download module.
496498
fn_fetch_file "${remote_fileurl}" "${remote_fileurl_backup}" "${remote_fileurl_name}" "${remote_fileurl_backup_name}" "${local_filedir}" "${local_filename}" "${chmodx}" "${run}" "${forcedl}" "${hash}"
497499
}
498500

499501
fn_check_file_github() {
500-
github_fileurl_dir="${1}"
501-
github_fileurl_name="${2}"
502+
github_file_url_dir="${1}"
503+
github_file_url_name="${2}"
502504
if [ "${githubbranch}" == "master" ] && [ "${githubuser}" == "GameServerManagers" ] && [ "${commandname}" != "UPDATE-LGSM" ]; then
503-
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${version}/${github_fileurl_dir}/${github_fileurl_name}"
504-
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${version}/${github_fileurl_dir}/${github_fileurl_name}"
505+
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${version}/${github_file_url_dir}/${github_file_url_name}"
506+
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${version}/${github_file_url_dir}/${github_file_url_name}"
505507
else
506-
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${github_fileurl_dir}/${github_fileurl_name}"
507-
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${githubbranch}/${github_fileurl_dir}/${github_fileurl_name}"
508+
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${github_file_url_dir}/${github_file_url_name}"
509+
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${githubbranch}/${github_file_url_dir}/${github_file_url_name}"
508510
fi
509511
remote_fileurl_name="GitHub"
510512
remote_fileurl_backup_name="Bitbucket"
511-
fn_check_file "${remote_fileurl}" "${remote_fileurl_backup}" "${remote_fileurl_name}" "${remote_fileurl_backup_name}" "${github_fileurl_name}"
513+
fn_check_file "${remote_fileurl}" "${remote_fileurl_backup}" "${remote_fileurl_name}" "${remote_fileurl_backup_name}" "${github_file_url_name}"
512514
}
513515

514516
# Fetches config files from the Git repo.
515517
fn_fetch_config() {
516-
github_fileurl_dir="${1}"
517-
github_fileurl_name="${2}"
518+
github_file_url_dir="${1}"
519+
github_file_url_name="${2}"
518520
# If master branch will currently running LinuxGSM version to prevent "version mixing". This is ignored if a fork.
519521
if [ "${githubbranch}" == "master" ] && [ "${githubuser}" == "GameServerManagers" ] && [ "${commandname}" != "UPDATE-LGSM" ]; then
520-
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${version}/${github_fileurl_dir}/${github_fileurl_name}"
521-
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${version}/${github_fileurl_dir}/${github_fileurl_name}"
522+
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${version}/${github_file_url_dir}/${github_file_url_name}"
523+
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${version}/${github_file_url_dir}/${github_file_url_name}"
522524
else
523-
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${github_fileurl_dir}/${github_fileurl_name}"
524-
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${githubbranch}/${github_fileurl_dir}/${github_fileurl_name}"
525+
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${github_file_url_dir}/${github_file_url_name}"
526+
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${githubbranch}/${github_file_url_dir}/${github_file_url_name}"
525527
fi
526528
remote_fileurl_name="GitHub"
527529
remote_fileurl_backup_name="Bitbucket"
@@ -531,55 +533,55 @@ fn_fetch_config() {
531533
run="norun"
532534
forcedl="noforce"
533535
hash="nohash"
534-
# Passes vars to the file download function.
536+
# Passes vars to the file download module.
535537
fn_fetch_file "${remote_fileurl}" "${remote_fileurl_backup}" "${remote_fileurl_name}" "${remote_fileurl_backup_name}" "${local_filedir}" "${local_filename}" "${chmodx}" "${run}" "${forcedl}" "${hash}"
536538
}
537539

538540
# Fetches modules from the Git repo during first download.
539-
fn_fetch_function() {
540-
github_fileurl_dir="lgsm/functions"
541-
github_fileurl_name="${functionfile}"
541+
fn_fetch_module() {
542+
github_file_url_dir="lgsm/modules"
543+
github_file_url_name="${modulefile}"
542544
# If master branch will currently running LinuxGSM version to prevent "version mixing". This is ignored if a fork.
543545
if [ "${githubbranch}" == "master" ] && [ "${githubuser}" == "GameServerManagers" ] && [ "${commandname}" != "UPDATE-LGSM" ]; then
544-
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${version}/${github_fileurl_dir}/${github_fileurl_name}"
545-
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${version}/${github_fileurl_dir}/${github_fileurl_name}"
546+
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${version}/${github_file_url_dir}/${github_file_url_name}"
547+
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${version}/${github_file_url_dir}/${github_file_url_name}"
546548
else
547-
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${github_fileurl_dir}/${github_fileurl_name}"
548-
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${githubbranch}/${github_fileurl_dir}/${github_fileurl_name}"
549+
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${github_file_url_dir}/${github_file_url_name}"
550+
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${githubbranch}/${github_file_url_dir}/${github_file_url_name}"
549551
fi
550552
remote_fileurl_name="GitHub"
551553
remote_fileurl_backup_name="Bitbucket"
552-
local_filedir="${functionsdir}"
553-
local_filename="${github_fileurl_name}"
554+
local_filedir="${modulesdir}"
555+
local_filename="${github_file_url_name}"
554556
chmodx="chmodx"
555557
run="run"
556558
forcedl="noforce"
557559
hash="nohash"
558-
# Passes vars to the file download function.
560+
# Passes vars to the file download module.
559561
fn_fetch_file "${remote_fileurl}" "${remote_fileurl_backup}" "${remote_fileurl_name}" "${remote_fileurl_backup_name}" "${local_filedir}" "${local_filename}" "${chmodx}" "${run}" "${forcedl}" "${hash}"
560562
}
561563

562564
# Fetches modules from the Git repo during update-lgsm.
563-
fn_update_function() {
564-
github_fileurl_dir="lgsm/functions"
565-
github_fileurl_name="${functionfile}"
565+
fn_update_module() {
566+
github_file_url_dir="lgsm/modules"
567+
github_file_url_name="${modulefile}"
566568
# If master branch will currently running LinuxGSM version to prevent "version mixing". This is ignored if a fork.
567569
if [ "${githubbranch}" == "master" ] && [ "${githubuser}" == "GameServerManagers" ] && [ "${commandname}" != "UPDATE-LGSM" ]; then
568-
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${version}/${github_fileurl_dir}/${github_fileurl_name}"
569-
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${version}/${github_fileurl_dir}/${github_fileurl_name}"
570+
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${version}/${github_file_url_dir}/${github_file_url_name}"
571+
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${version}/${github_file_url_dir}/${github_file_url_name}"
570572
else
571-
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${github_fileurl_dir}/${github_fileurl_name}"
572-
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${githubbranch}/${github_fileurl_dir}/${github_fileurl_name}"
573+
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${github_file_url_dir}/${github_file_url_name}"
574+
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${githubbranch}/${github_file_url_dir}/${github_file_url_name}"
573575
fi
574576
remote_fileurl_name="GitHub"
575577
remote_fileurl_backup_name="Bitbucket"
576-
local_filedir="${functionsdir}"
577-
local_filename="${github_fileurl_name}"
578+
local_filedir="${modulesdir}"
579+
local_filename="${github_file_url_name}"
578580
chmodx="chmodx"
579581
run="norun"
580582
forcedl="noforce"
581583
hash="nohash"
582-
# Passes vars to the file download function.
584+
# Passes vars to the file download module.
583585
fn_fetch_file "${remote_fileurl}" "${remote_fileurl_backup}" "${remote_fileurl_name}" "${remote_fileurl_backup_name}" "${local_filedir}" "${local_filename}" "${chmodx}" "${run}" "${forcedl}" "${hash}"
584586

585587
}
@@ -618,7 +620,7 @@ fn_dl_latest_release_github() {
618620
fn_print_fail_nl "Cannot get version from GitHub API for ${githubreleaseuser}/${githubreleaserepo}"
619621
fn_script_log_fatal "Cannot get version from GitHub API for ${githubreleaseuser}/${githubreleaserepo}"
620622
else
621-
# Fetch file from the remote location from the existing function to the ${tmpdir} for now.
623+
# Fetch file from the remote location from the existing module to the ${tmpdir} for now.
622624
fn_fetch_file "${githubreleasedownloadlink}" "" "${githubreleasefilename}" "" "${githubreleasedownloadpath}" "${githubreleasefilename}"
623625
fi
624626
fi

lgsm/functions/core_exit.sh

100755100644
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
# Website: https://linuxgsm.com
66
# Description: Handles exiting of LinuxGSM by running and reporting an exit code.
77

8-
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
8+
moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
99

1010
fn_exit_dev_debug() {
1111
if [ -f "${rootdir}/.dev-debug" ]; then
1212
echo -e ""
13-
echo -e "${functionselfname} exiting with code: ${exitcode}"
13+
echo -e "${moduleselfname} exiting with code: ${exitcode}"
1414
if [ -f "${rootdir}/dev-debug.log" ]; then
15-
grep "functionfile=" "${rootdir}/dev-debug.log" | sed 's/functionfile=//g' > "${rootdir}/dev-debug-function-order.log"
15+
grep "modulefile=" "${rootdir}/dev-debug.log" | sed 's/modulefile=//g' > "${rootdir}/dev-debug-module-order.log"
1616
fi
1717
fi
1818
}
@@ -29,13 +29,13 @@ elif [ "${exitcode}" != "0" ]; then
2929
# List LinuxGSM version in logs
3030
fn_script_log_info "LinuxGSM version: ${version}"
3131
if [ "${exitcode}" == "1" ]; then
32-
fn_script_log_fatal "${functionselfname} exiting with code: ${exitcode}"
32+
fn_script_log_fatal "${moduleselfname} exiting with code: ${exitcode}"
3333
elif [ "${exitcode}" == "2" ]; then
34-
fn_script_log_error "${functionselfname} exiting with code: ${exitcode}"
34+
fn_script_log_error "${moduleselfname} exiting with code: ${exitcode}"
3535
elif [ "${exitcode}" == "3" ]; then
36-
fn_script_log_warn "${functionselfname} exiting with code: ${exitcode}"
36+
fn_script_log_warn "${moduleselfname} exiting with code: ${exitcode}"
3737
else
38-
fn_script_log_warn "${functionselfname} exiting with code: ${exitcode}"
38+
fn_script_log_warn "${moduleselfname} exiting with code: ${exitcode}"
3939
fi
4040
fn_exit_dev_debug
4141
# remove trap.
@@ -44,7 +44,7 @@ elif [ "${exitcode}" != "0" ]; then
4444
elif [ "${exitcode}" ] && [ "${exitcode}" == "0" ]; then
4545
# List LinuxGSM version in logs
4646
fn_script_log_info "LinuxGSM version: ${version}"
47-
fn_script_log_pass "${functionselfname} exiting with code: ${exitcode}"
47+
fn_script_log_pass "${moduleselfname} exiting with code: ${exitcode}"
4848
fn_exit_dev_debug
4949
# remove trap.
5050
trap - INT
@@ -53,7 +53,7 @@ else
5353
# List LinuxGSM version in logs
5454
fn_script_log_info "LinuxGSM version: ${version}"
5555
fn_print_error "No exit code set"
56-
fn_script_log_pass "${functionselfname} exiting with code: NOT SET"
56+
fn_script_log_pass "${moduleselfname} exiting with code: NOT SET"
5757
fn_exit_dev_debug
5858
# remove trap.
5959
trap - INT

lgsm/functions/core_functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Description: Defines all functions to allow download and execution of functions using fn_fetch_function.
77
# This function is called first before any other function. Without this file other functions will not load.
88

9-
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
9+
module_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
1010

1111
modulesversion="v23.2.0"
1212

lgsm/functions/core_getopt.sh

100755100644
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Website: https://linuxgsm.com
66
# Description: getopt arguments.
77

8-
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
8+
moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
99

1010
### Define all commands here.
1111
## User commands | Trigger commands | Description
@@ -18,11 +18,11 @@ cmd_restart=("r;restart" "command_restart.sh" "Restart the server.")
1818
cmd_details=("dt;details" "command_details.sh" "Display server information.")
1919
cmd_postdetails=("pd;postdetails" "command_postdetails.sh" "Post details to termbin.com (removing passwords).")
2020
cmd_backup=("b;backup" "command_backup.sh" "Create backup archives of the server.")
21-
cmd_update_linuxgsm=("ul;update-lgsm;uf;update-functions" "command_update_linuxgsm.sh" "Check and apply any LinuxGSM updates.")
21+
cmd_update_linuxgsm=("ul;update-lgsm;uf;update-modules" "command_update_linuxgsm.sh" "Check and apply any LinuxGSM updates.")
2222
cmd_test_alert=("ta;test-alert" "command_test_alert.sh" "Send a test alert.")
2323
cmd_monitor=("m;monitor" "command_monitor.sh" "Check server status and restart if crashed.")
2424
cmd_skeleton=("sk;skeleton" "command_skeleton.sh" "Create a skeleton directory.")
25-
cmd_sponsor=("s;sponsor" "command_sponsor.sh" "Donation options.")
25+
cmd_sponso=("s;sponsor" "command_sponsor.sh" "Donation options.")
2626
cmd_send=("sd;send" "command_send.sh" "Send command to game server console.")
2727
# Console servers only.
2828
cmd_console=("c;console" "command_console.sh" "Access server console.")
@@ -54,7 +54,7 @@ cmd_dev_detect_deps=("dd;detect-deps" "command_dev_detect_deps.sh" "Detect requi
5454
cmd_dev_detect_glibc=("dg;detect-glibc" "command_dev_detect_glibc.sh" "Detect required glibc.")
5555
cmd_dev_detect_ldd=("dl;detect-ldd" "command_dev_detect_ldd.sh" "Detect required dynamic dependencies.")
5656
cmd_dev_query_raw=("qr;query-raw" "command_dev_query_raw.sh" "The raw output of gamedig and gsquery.")
57-
cmd_dev_clear_functions=("cf;clear-functions" "command_dev_clear_functions.sh" "Delete the contents of the functions dir.")
57+
cmd_dev_clear_modules=("cf;clear-modules" "command_dev_clear_modules.sh" "Delete the contents of the modules dir.")
5858

5959
### Set specific opt here.
6060

@@ -145,7 +145,7 @@ currentopt+=("${cmd_install[@]}" "${cmd_auto_install[@]}")
145145
## Developer commands.
146146
currentopt+=("${cmd_dev_debug[@]}")
147147
if [ -f ".dev-debug" ]; then
148-
currentopt+=("${cmd_dev_detect_deps[@]}" "${cmd_dev_detect_glibc[@]}" "${cmd_dev_detect_ldd[@]}" "${cmd_dev_query_raw[@]}" "${cmd_dev_clear_functions[@]}")
148+
currentopt+=("${cmd_dev_detect_deps[@]}" "${cmd_dev_detect_glibc[@]}" "${cmd_dev_detect_ldd[@]}" "${cmd_dev_query_raw[@]}" "${cmd_dev_clear_modules[@]}")
149149
fi
150150

151151
## Sponsor.

lgsm/functions/core_github.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/bin/bash
2-
# LinuxGSM core_github.sh function
2+
# LinuxGSM core_github.sh module
33
# Author: Daniel Gibbs
44
# Contributors: http://linuxgsm.com/contrib
55
# Website: https://linuxgsm.com
6-
# Description: core function file for updates via github
6+
# Description: core module file for updates via github
77

8-
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
8+
moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
99

1010
github_api="https://api.github.com"
1111

0 commit comments

Comments
 (0)