Skip to content

Commit 11776f7

Browse files
committed
Fixes minor formatting and logic issues
Addresses various minor issues including: - Standardizes indentation in `.editorconfig` for different file types. - Simplifies Prettier configuration. - Updates image links in `README.md`. - Ensures newline character at end of `.csv` files. - Corrects a conditional statement in `command_fastdl.sh`. - Corrects a conditional statement in `info_messages.sh`. - Updates server query protocols in `query_gsquery.py`.
1 parent 42d38a5 commit 11776f7

File tree

8 files changed

+28
-13
lines changed

8 files changed

+28
-13
lines changed

.editorconfig

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,21 @@ insert_final_newline = true
1212
trim_trailing_whitespace = true
1313

1414
# BASH Files
15-
[*.{.sh}]
15+
[*.sh]
1616
indent_size = 4
1717
indent_style = tab
18+
19+
# JSON Files (Biome formatting)
20+
[*.json]
21+
indent_style = tab
22+
indent_size = 2
23+
24+
# Steam appmanifest files (Valve ACF format)
25+
[*.acf]
26+
indent_style = tab
27+
indent_size = 4
28+
29+
# Python
30+
[*.py]
31+
indent_style = space
32+
indent_size = 4

.prettierrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"plugins": ["prettier-plugin-sh"]
2+
"plugins": ["prettier-plugin-sh"]
33
}

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<p align="center">
2-
<a href="https://linuxgsm.com"><img src="https://i.imgur.com/Eoh1jsi.jpg" alt="LinuxGSM">
3-
<a href="https://www.codacy.com/gh/GameServerManagers/LinuxGSM/dashboard"><img src="https://img.shields.io/codacy/grade/d19c5234dc3743d8a8a14093711ca52d?style=flat-square&logo=codacy&logoColor=white" alt="Codacy grade"></a>
4-
<a href="https://bitbucket.org/GameServerManagers/linuxgsm"><img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/GameServerManagers/LinuxGSM/git-sync.yml?color=0052CC&logo=bitbucket&style=flat-square"></a>
5-
<a href="https://linuxgsm.com/discord"><img alt="Discord" src="https://img.shields.io/discord/127498813903601664?color=5865F2&label=%20&logo=discord&logoColor=ffffff&style=flat-square"></a>
6-
<a href="https://developer.valvesoftware.com/wiki/SteamCMD"><img src="https://img.shields.io/badge/SteamCMD-000000?style=flat-square&amp;logo=Steam&amp;logoColor=white" alt="SteamCMD"></a>
7-
<a href="https://github.com/GameServerManagers/LinuxGSM/blob/master/LICENSE.md"><img src="https://img.shields.io/github/license/gameservermanagers/LinuxGSM?style=flat-square" alt="MIT License"></a>
2+
<a href="https://linuxgsm.com"><img src="https://i.imgur.com/Eoh1jsi.jpg" alt="LinuxGSM">
3+
<a href="https://www.codacy.com/gh/GameServerManagers/LinuxGSM/dashboard"><img src="https://img.shields.io/codacy/grade/d19c5234dc3743d8a8a14093711ca52d?style=flat-square&logo=codacy&logoColor=white" alt="Codacy grade"></a>
4+
<a href="https://bitbucket.org/GameServerManagers/linuxgsm"><img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/GameServerManagers/LinuxGSM/git-sync.yml?color=0052CC&logo=bitbucket&style=flat-square"></a>
5+
<a href="https://linuxgsm.com/discord"><img alt="Discord" src="https://img.shields.io/discord/127498813903601664?color=5865F2&label=%20&logo=discord&logoColor=ffffff&style=flat-square"></a>
6+
<a href="https://developer.valvesoftware.com/wiki/SteamCMD"><img src="https://img.shields.io/badge/SteamCMD-000000?style=flat-square&amp;logo=Steam&amp;logoColor=white" alt="SteamCMD"></a>
7+
<a href="https://github.com/GameServerManagers/LinuxGSM/blob/master/LICENSE.md"><img src="https://img.shields.io/github/license/gameservermanagers/LinuxGSM?style=flat-square" alt="MIT License"></a>
88
</p>
99

1010
[LinuxGSM](https://linuxgsm.com) is the command-line tool for quick, simple deployment and management of Linux dedicated game servers.

lgsm/data/name-left.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,4 @@ wonderful
105105
xenodochial
106106
youthful
107107
zealous
108-
zen
108+
zen

lgsm/data/name-right.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,4 +234,4 @@ wright
234234
wu
235235
yalow
236236
yonath
237-
zhukovsky
237+
zhukovsky

lgsm/modules/command_fastdl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ fn_fastdl_preview() {
219219
core_exit.sh
220220
fi
221221

222-
if [ "${engine}" == "source" ]; then
222+
if [ "${engine}" == "source" ]; then
223223
echo -e "about to compress ${totalfiles} files, total size $(fn_human_readable_file_size "${filesizetotal}" 0)"
224224
elif [ "${engine}" == "goldsrc" ]; then
225225
echo -e "about to copy ${totalfiles} files, total size $(fn_human_readable_file_size "${filesizetotal}" 0)"

lgsm/modules/info_messages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ fn_info_messages_script() {
598598
echo -e "${lightblue}Gotify alert:\t${default}${gotifyalert}"
599599
fi
600600
# IFTTT alert
601-
if [ "${iftttalert}" == "on" ]; then
601+
if [ "${iftttalert}" == "on" ]; then
602602
echo -e "${lightblue}IFTTT alert:\t${default}${iftttalert}"
603603
fi
604604
# Pushbullet alert

lgsm/modules/query_gsquery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class gsquery:
1818
server_response_timeout = 2
1919
default_buffer_length = 1024
2020
sourcequery = ('protocol-valve', 'avalanche3.0', 'barotrauma', 'madness', 'quakelive', 'realvirtuality',
21-
'refractor', 'source', 'goldsrc', 'spark', 'starbound', 'unity3d', 'unreal4', 'wurm')
21+
'refractor', 'source', 'goldsrc', 'spark', 'starbound', 'unity3d', 'unreal4', 'wurm')
2222
idtech2query = ('protocol-quake2', 'idtech2', 'quake', 'iw2.0')
2323
idtech3query = ('protocol-quake3', 'iw3.0', 'ioquake3', 'qfusion')
2424
minecraftquery = ('minecraft', 'lwjgl2')

0 commit comments

Comments
 (0)