Skip to content

Commit 5023490

Browse files
dgibbs64actions-user
authored andcommitted
chore(prettier): format code
1 parent 17dc48e commit 5023490

File tree

8 files changed

+120
-120
lines changed

8 files changed

+120
-120
lines changed

.github/pull_request_template.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,30 @@ Fixes #[issue]
66

77
## Type of change
88

9-
- [ ] Bug fix (a change which fixes an issue).
10-
- [ ] New feature (a change which adds functionality).
11-
- [ ] New Server (new server added).
12-
- [ ] Refactor (restructures existing code).
13-
- [ ] Comment update (typo, spelling, explanation, examples, etc).
9+
- [ ] Bug fix (a change which fixes an issue).
10+
- [ ] New feature (a change which adds functionality).
11+
- [ ] New Server (new server added).
12+
- [ ] Refactor (restructures existing code).
13+
- [ ] Comment update (typo, spelling, explanation, examples, etc).
1414

1515
## Checklist
1616

1717
PR will not be merged until all steps are complete.
1818

19-
- [ ] This pull request links to an issue.
20-
- [ ] This pull request uses the `develop` branch as its base.
21-
- [ ] This pull request subject follows the Conventional Commits standard.
22-
- [ ] This code follows the style guidelines of this project.
23-
- [ ] I have performed a self-review of my code.
24-
- [ ] I have checked that this code is commented where required.
25-
- [ ] I have provided a detailed enough description of this PR.
26-
- [ ] I have checked if documentation needs updating.
19+
- [ ] This pull request links to an issue.
20+
- [ ] This pull request uses the `develop` branch as its base.
21+
- [ ] This pull request subject follows the Conventional Commits standard.
22+
- [ ] This code follows the style guidelines of this project.
23+
- [ ] I have performed a self-review of my code.
24+
- [ ] I have checked that this code is commented where required.
25+
- [ ] I have provided a detailed enough description of this PR.
26+
- [ ] I have checked if documentation needs updating.
2727

2828
## Documentation
2929

3030
If documentation does need updating either update it by creating a PR (preferred) or request a documentation update.
3131

32-
- User docs: <https://github.com/GameServerManagers/LinuxGSM-Docs>
33-
- Dev docs: <https://github.com/GameServerManagers/LinuxGSM-Dev-Docs>
32+
- User docs: <https://github.com/GameServerManagers/LinuxGSM-Docs>
33+
- Dev docs: <https://github.com/GameServerManagers/LinuxGSM-Dev-Docs>
3434

3535
**Thank you for your Pull Request!**

CODE_OF_CONDUCT.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,24 @@ diverse, inclusive, and healthy community.
1717
Examples of behavior that contributes to a positive environment for our
1818
community include:
1919

20-
- Demonstrating empathy and kindness toward other people
21-
- Being respectful of differing opinions, viewpoints, and experiences
22-
- Giving and gracefully accepting constructive feedback
23-
- Accepting responsibility and apologizing to those affected by our mistakes,
24-
and learning from the experience
25-
- Focusing on what is best not just for us as individuals, but for the
26-
overall community
20+
- Demonstrating empathy and kindness toward other people
21+
- Being respectful of differing opinions, viewpoints, and experiences
22+
- Giving and gracefully accepting constructive feedback
23+
- Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
- Focusing on what is best not just for us as individuals, but for the
26+
overall community
2727

2828
Examples of unacceptable behavior include:
2929

30-
- The use of sexualized language or imagery, and sexual attention or
31-
advances of any kind
32-
- Trolling, insulting or derogatory comments, and personal or political attacks
33-
- Public or private harassment
34-
- Publishing others' private information, such as a physical or email
35-
address, without their explicit permission
36-
- Other conduct which could reasonably be considered inappropriate in a
37-
professional setting
30+
- The use of sexualized language or imagery, and sexual attention or
31+
advances of any kind
32+
- Trolling, insulting or derogatory comments, and personal or political attacks
33+
- Public or private harassment
34+
- Publishing others' private information, such as a physical or email
35+
address, without their explicit permission
36+
- Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
3838

3939
## Enforcement Responsibilities
4040

CONTRIBUTING.md

Lines changed: 66 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,31 @@ The following is a set of guidelines for contributing to LinuxGSM, which are hos
88

99
[Contributing to LinuxGSM](#contributing-to-linuxgsm)
1010

11-
- [Table of Contents](#table-of-contents)
12-
- [Code of Conduct](#code-of-conduct)
13-
- [🎉 Bug/Enhancement Contributions 🐛](#bug-enhancement-contributions)
14-
- [🐛Reporting Bugs](#reporting-bugs)
15-
- [Before Submitting A Bug Report](#before-submitting-a-bug-report)
16-
- [How Do I Submit A (Good) Bug Report?](#how-do-i-submit-a--good--bug-report-)
17-
- [🎉Suggesting Features](#suggesting-features)
18-
- [Before Submitting An Feature Suggestion](#before-submitting-an-feature-suggestion)
19-
- [How Do I Submit A (Good) Feature Suggestion?](#how-do-i-submit-a--good--feature-suggestion-)
20-
- [🎮 Game Server Requests](#game-server-requests)
21-
- [Before Submitting a Game Server Request](#before-submitting-a-game-server-request)
22-
- [How Do I Submit A (Good) Game Server Request?](#how-do-i-submit-a--good--game-server-request-)
23-
- [🎮 Game Server Specific Issues](#game-server-specific-issues)
24-
- [💻 Code Contributions](#code-contributions)
25-
- [Pull Requests](#pull-requests)
26-
- [Pull Request naming convention](#pull-request-naming-convention)
27-
- [Testing](#testing)
28-
- [Pull Request Status Checks](#pull-request-status-checks)
29-
- [Test Environment](#test-environment)
30-
- [:wine_glass: Styleguides](#-wine-glass--styleguides)
31-
- [Git Commit Messages](#git-commit-messages)
32-
- [BASH Styleguide](#bash-styleguide)
33-
- [:blue_book: Document Contributions](#-blue-book--document-contributions)
34-
- [Documentation Styleguide](#documentation-styleguide)
35-
- [Issue and Pull Request Labels](#issue-and-pull-request-labels)
11+
- [Table of Contents](#table-of-contents)
12+
- [Code of Conduct](#code-of-conduct)
13+
- [🎉 Bug/Enhancement Contributions 🐛](#bug-enhancement-contributions)
14+
- [🐛Reporting Bugs](#reporting-bugs)
15+
- [Before Submitting A Bug Report](#before-submitting-a-bug-report)
16+
- [How Do I Submit A (Good) Bug Report?](#how-do-i-submit-a--good--bug-report-)
17+
- [🎉Suggesting Features](#suggesting-features)
18+
- [Before Submitting An Feature Suggestion](#before-submitting-an-feature-suggestion)
19+
- [How Do I Submit A (Good) Feature Suggestion?](#how-do-i-submit-a--good--feature-suggestion-)
20+
- [🎮 Game Server Requests](#game-server-requests)
21+
- [Before Submitting a Game Server Request](#before-submitting-a-game-server-request)
22+
- [How Do I Submit A (Good) Game Server Request?](#how-do-i-submit-a--good--game-server-request-)
23+
- [🎮 Game Server Specific Issues](#game-server-specific-issues)
24+
- [💻 Code Contributions](#code-contributions)
25+
- [Pull Requests](#pull-requests)
26+
- [Pull Request naming convention](#pull-request-naming-convention)
27+
- [Testing](#testing)
28+
- [Pull Request Status Checks](#pull-request-status-checks)
29+
- [Test Environment](#test-environment)
30+
- [:wine_glass: Styleguides](#-wine-glass--styleguides)
31+
- [Git Commit Messages](#git-commit-messages)
32+
- [BASH Styleguide](#bash-styleguide)
33+
- [:blue_book: Document Contributions](#-blue-book--document-contributions)
34+
- [Documentation Styleguide](#documentation-styleguide)
35+
- [Issue and Pull Request Labels](#issue-and-pull-request-labels)
3636

3737
## Code of Conduct
3838

@@ -48,55 +48,55 @@ Before creating bug reports, please check [this list](https://github.com/GameSer
4848

4949
#### Before Submitting A Bug Report
5050

51-
- **Check the [documentation](https://docs.linuxgsm.com).** You might be able to find the cause of the problem and fix things yourself.
52-
- **Check the** [**support page**](https://linuxgsm.com/support) for links to other support options.
53-
- **Perform a** [**cursory search**](https://github.com/search?q=org:GameServerManagers%20type:issues&type=Issues) to see if the problem has already been reported. If it has **and the issue is still open**, add a comment to the existing issue and give it a thumbs up instead of opening a new one.
51+
- **Check the [documentation](https://docs.linuxgsm.com).** You might be able to find the cause of the problem and fix things yourself.
52+
- **Check the** [**support page**](https://linuxgsm.com/support) for links to other support options.
53+
- **Perform a** [**cursory search**](https://github.com/search?q=org:GameServerManagers%20type:issues&type=Issues) to see if the problem has already been reported. If it has **and the issue is still open**, add a comment to the existing issue and give it a thumbs up instead of opening a new one.
5454

5555
#### How Do I Submit A (Good) Bug Report?
5656

5757
Bugs are tracked as [GitHub issues](https://guides.github.com/features/issues/). Create an issue and provide the following information by filling in [the issues form](https://github.com/GameServerManagers/LinuxGSM/issues/new/choose).
5858

59-
- **Use a clear and descriptive title** for the issue to identify the problem.
60-
- **Complete the user story** to give a summary of the issue.
61-
- **Provide basic info** to help us understand the context of the issue.
62-
- **Provide further info** to give specifics and more detail.
63-
- **Give steps to reproduce** the issue, allowing developers to follow steps that lead to the issue.
64-
- **Explain what you expect** to happen, so we know what you think should occur.
59+
- **Use a clear and descriptive title** for the issue to identify the problem.
60+
- **Complete the user story** to give a summary of the issue.
61+
- **Provide basic info** to help us understand the context of the issue.
62+
- **Provide further info** to give specifics and more detail.
63+
- **Give steps to reproduce** the issue, allowing developers to follow steps that lead to the issue.
64+
- **Explain what you expect** to happen, so we know what you think should occur.
6565

6666
### 🎉Suggesting Features
6767

6868
This section guides you through submitting a feature suggestion for LinuxGSM, including completely new features and minor improvements to existing functionality. Following these guidelines help maintainers and the community understand your suggestion 📝 and find related suggestions 🔎.
6969

7070
#### Before Submitting An Feature Suggestion
7171

72-
- **Check the** [**documentation**](<https://docs.linuxgsm.com/%5D(https://docs.linuxgsm.com/)>) to confirm that the enhancement doesn’t already exist.
73-
- **Check your** [**LinuxGSM version**](https://docs.linuxgsm.com/commands/update-lgsm)**.** A newer version of LinuxGSM may already have your enhancement.
74-
- **Perform a** [**cursory search**](https://github.com/search?q=org:GameServerManagers%20type:issues&type=Issues) to see if the enhancement has already been suggested. If it has **and the enhancement is still open**, add a comment to the existing issue and give it a thumbs up instead of opening a new one.
72+
- **Check the** [**documentation**](<https://docs.linuxgsm.com/%5D(https://docs.linuxgsm.com/)>) to confirm that the enhancement doesn’t already exist.
73+
- **Check your** [**LinuxGSM version**](https://docs.linuxgsm.com/commands/update-lgsm)**.** A newer version of LinuxGSM may already have your enhancement.
74+
- **Perform a** [**cursory search**](https://github.com/search?q=org:GameServerManagers%20type:issues&type=Issues) to see if the enhancement has already been suggested. If it has **and the enhancement is still open**, add a comment to the existing issue and give it a thumbs up instead of opening a new one.
7575

7676
#### How Do I Submit A (Good) Feature Suggestion?
7777

7878
Features are tracked as [GitHub issues](https://guides.github.com/features/issues/). Create an issue and provide the following information by filling in [the issues form](https://github.com/GameServerManagers/LinuxGSM/issues/new/choose).
7979

80-
- **Use a clear and descriptive title** for the issue to identify the problem.
81-
- **Complete the user story** to give a summary of the issue.
82-
- **Provide basic info** to help us understand the context of the enhancement.
83-
- **Provide further info** to give specifics and more detail.
84-
- **Provide any further reading** materials that might assist in developing the enhancement.
80+
- **Use a clear and descriptive title** for the issue to identify the problem.
81+
- **Complete the user story** to give a summary of the issue.
82+
- **Provide basic info** to help us understand the context of the enhancement.
83+
- **Provide further info** to give specifics and more detail.
84+
- **Provide any further reading** materials that might assist in developing the enhancement.
8585

8686
### 🎮 Game Server Requests
8787

8888
This section guides you through submitting a game server request for LinuxGSM, Following these guidelines help maintainers and the community understand your game server request 📝.
8989

9090
#### Before Submitting a Game Server Request
9191

92-
- **Check for existing** [**game server requests**](https://github.com/GameServerManagers/LinuxGSM/labels/type%3A%20game%20server%20request) to see if the new game server has already been suggested. If it has **and if the new game server is still open**, give it a thumbs up.
93-
- **Check the game server is supported on Linux**, this does not include Wine servers which we do not support.
92+
- **Check for existing** [**game server requests**](https://github.com/GameServerManagers/LinuxGSM/labels/type%3A%20game%20server%20request) to see if the new game server has already been suggested. If it has **and if the new game server is still open**, give it a thumbs up.
93+
- **Check the game server is supported on Linux**, this does not include Wine servers which we do not support.
9494

9595
#### How Do I Submit A (Good) Game Server Request?
9696

97-
- The title should be as follows: **[Server Request] Game Name**
98-
- **Provide Steam App ID** if applicable
99-
- **Supply any documentation/how-to guides** for the game server.
97+
- The title should be as follows: **[Server Request] Game Name**
98+
- **Provide Steam App ID** if applicable
99+
- **Supply any documentation/how-to guides** for the game server.
100100

101101
### 🎮 Game Server Specific Issues
102102

@@ -114,10 +114,10 @@ A [list](https://docs.linuxgsm.com/support/game-server) of known game developer
114114

115115
The process described here has several goals:
116116

117-
- Maintain LinuxGSM quality.
118-
- Fix problems that are important to users.
119-
- Engage the community in working toward the best possible LinuxGSM.
120-
- Enable a sustainable system for LinuxGSM maintainers to review contributions.
117+
- Maintain LinuxGSM quality.
118+
- Fix problems that are important to users.
119+
- Engage the community in working toward the best possible LinuxGSM.
120+
- Enable a sustainable system for LinuxGSM maintainers to review contributions.
121121

122122
Please follow these steps to have your contribution considered by the maintainers:
123123

@@ -139,23 +139,23 @@ If applied, this commit will _your subject line here_
139139

140140
For example:
141141

142-
- If applied, this commit will **refactor subsystem X for readability**
143-
- If applied, this commit will **update getting started documentation**
144-
- If applied, this commit will **remove deprecated methods**
145-
- If applied, this commit will **release version 1.0.0**
146-
- If applied, this commit will **merge pull request #123 from user/branch**
142+
- If applied, this commit will **refactor subsystem X for readability**
143+
- If applied, this commit will **update getting started documentation**
144+
- If applied, this commit will **remove deprecated methods**
145+
- If applied, this commit will **release version 1.0.0**
146+
- If applied, this commit will **merge pull request #123 from user/branch**
147147

148148
Notice how this doesn’t work for the other non-imperative forms:
149149

150-
- If applied, this commit will **fixed bug with Y**
151-
- If applied, this commit will **change the behaviour of X**
152-
- If applied, this commit will **more fixes for broken stuff**
153-
- If applied, this commit will **sweet new API methods**
150+
- If applied, this commit will **fixed bug with Y**
151+
- If applied, this commit will **change the behaviour of X**
152+
- If applied, this commit will **more fixes for broken stuff**
153+
- If applied, this commit will **sweet new API methods**
154154

155155
Below is an example of the subject line for a pull request:
156156

157-
- feat(alerts): add slack support to alerts
158-
- fix(csgoserver): remove SteamCMD auth requirement 32-bit workaround
157+
- feat(alerts): add slack support to alerts
158+
- fix(csgoserver): remove SteamCMD auth requirement 32-bit workaround
159159

160160
### Testing
161161

@@ -210,10 +210,10 @@ Labels to help pinpoint what the issue or PR relates to.
210210

211211
variants:
212212

213-
- _distro_
214-
- _engine_
215-
- _game_
216-
- _info_
213+
- _distro_
214+
- _engine_
215+
- _game_
216+
- _info_
217217

218218
**outcome** Labels
219219
Labels that identify why an issue was closed.

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@ Traditionally game servers are not easy to manage yourself. Admins often have to
1717

1818
100+ game servers supported
1919

20-
- :truck: Installer
21-
- :mag: Monitor
22-
- :phone: Alerts
23-
- :cloud: Updater
24-
- :blue_book: Server Details
25-
- :floppy_disk: Backup
26-
- :computer: Console
20+
- :truck: Installer
21+
- :mag: Monitor
22+
- :phone: Alerts
23+
- :cloud: Updater
24+
- :blue_book: Server Details
25+
- :floppy_disk: Backup
26+
- :computer: Console
2727

2828
## :penguin: Compatibility
2929

3030
LinuxGSM will run on popular distros as long as the minimum requirements are met.
3131

32-
- Ubuntu
33-
- Debian
34-
- CentOS
32+
- Ubuntu
33+
- Debian
34+
- CentOS
3535

3636
Other distros are likely to work but are not fully tested.
3737

lgsm/modules/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ These modules are scripts that are called upon by the primary script linuxgsm.sh
66

77
Modules have been named to give an idea of what the function does.
88

9-
- core: Essential modules that will always run first.
10-
- command: Primary command function.
11-
- check: Runs checks that will either halt on or fix an issue.
12-
- dev: development modules.
13-
- fix: Applies a game server specific fix.
14-
- info: retrieves information from a source such as config file or the OS.
15-
- install: modules related to the installer.
16-
- monitor: modules related to monitor.
17-
- update: modules that update the game server.
9+
- core: Essential modules that will always run first.
10+
- command: Primary command function.
11+
- check: Runs checks that will either halt on or fix an issue.
12+
- dev: development modules.
13+
- fix: Applies a game server specific fix.
14+
- info: retrieves information from a source such as config file or the OS.
15+
- install: modules related to the installer.
16+
- monitor: modules related to monitor.
17+
- update: modules that update the game server.

lgsm/modules/alert.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fn_alert_log() {
2020
fn_info_messages_gameserver_resource
2121
fn_info_messages_gameserver
2222
fn_info_logs
23-
} | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g" | tee -a "${alertlog}" >/dev/null 2>&1
23+
} | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g" | tee -a "${alertlog}" > /dev/null 2>&1
2424
}
2525

2626
fn_alert_test() {

lgsm/modules/core_modules.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ modulesversion="v25.2.0"
1414

1515
core_dl.sh() {
1616
modulefile="${FUNCNAME[0]}"
17-
if [ "$(type fn_fetch_core_dl 2>/dev/null)" ]; then
17+
if [ "$(type fn_fetch_core_dl 2> /dev/null)" ]; then
1818
fn_fetch_core_dl "lgsm/modules" "core_dl.sh" "${modulesdir}" "chmodx" "run" "noforcedl" "nohash"
1919
else
2020
fn_bootstrap_fetch_file_github "lgsm/modules" "core_dl.sh" "${modulesdir}" "chmodx" "run" "noforcedl" "nohash"
@@ -43,7 +43,7 @@ core_github.sh() {
4343

4444
core_legacy.sh() {
4545
modulefile="${FUNCNAME[0]}"
46-
if [ "$(type fn_fetch_core_dl 2>/dev/null)" ]; then
46+
if [ "$(type fn_fetch_core_dl 2> /dev/null)" ]; then
4747
fn_fetch_core_dl "lgsm/modules" "core_legacy.sh" "${modulesdir}" "chmodx" "run" "noforcedl" "nohash"
4848
else
4949
fn_bootstrap_fetch_file_github "lgsm/modules" "core_legacy.sh" "${modulesdir}" "chmodx" "run" "noforcedl" "nohash"
@@ -52,7 +52,7 @@ core_legacy.sh() {
5252

5353
core_messages.sh() {
5454
modulefile="${FUNCNAME[0]}"
55-
if [ "$(type fn_fetch_core_dl 2>/dev/null)" ]; then
55+
if [ "$(type fn_fetch_core_dl 2> /dev/null)" ]; then
5656
fn_fetch_core_dl "lgsm/modules" "core_messages.sh" "${modulesdir}" "chmodx" "run" "noforcedl" "nohash"
5757
else
5858
fn_bootstrap_fetch_file_github "lgsm/modules" "core_messages.sh" "${modulesdir}" "chmodx" "run" "noforcedl" "nohash"

lgsm/modules/install_ut2k4_key.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if [ -z "${autoinstall}" ]; then
1818
echo -e "Once you have the key enter it below"
1919
echo -n "KEY: "
2020
read -r CODE
21-
printf '"CDKey"="%s"\n' "${CODE}" > "${systemdir}/cdkey"
21+
printf '"CDKey"="%s"\n' "${CODE}" > "${systemdir}/cdkey"
2222
if [ -f "${systemdir}/cdkey" ]; then
2323
fn_script_log_info "UT2K4 Server CD Key created"
2424
fi

0 commit comments

Comments
 (0)