Browse Source

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`.
pull/4854/head
Daniel Gibbs 4 months ago
parent
commit
11776f7d89
Failed to extract signature
  1. 17
      .editorconfig
  2. 2
      .prettierrc
  3. 12
      README.md
  4. 2
      lgsm/data/name-left.csv
  5. 2
      lgsm/data/name-right.csv
  6. 2
      lgsm/modules/command_fastdl.sh
  7. 2
      lgsm/modules/info_messages.sh
  8. 2
      lgsm/modules/query_gsquery.py

17
.editorconfig

@ -12,6 +12,21 @@ insert_final_newline = true
trim_trailing_whitespace = true
# BASH Files
[*.{.sh}]
[*.sh]
indent_size = 4
indent_style = tab
# JSON Files (Biome formatting)
[*.json]
indent_style = tab
indent_size = 2
# Steam appmanifest files (Valve ACF format)
[*.acf]
indent_style = tab
indent_size = 4
# Python
[*.py]
indent_style = space
indent_size = 4

2
.prettierrc

@ -1,3 +1,3 @@
{
"plugins": ["prettier-plugin-sh"]
"plugins": ["prettier-plugin-sh"]
}

12
README.md

@ -1,10 +1,10 @@
<p align="center">
<a href="https://linuxgsm.com"><img src="https://i.imgur.com/Eoh1jsi.jpg" alt="LinuxGSM">
<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>
<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>
<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>
<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>
<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>
<a href="https://linuxgsm.com"><img src="https://i.imgur.com/Eoh1jsi.jpg" alt="LinuxGSM">
<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>
<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>
<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>
<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>
<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>
</p>
[LinuxGSM](https://linuxgsm.com) is the command-line tool for quick, simple deployment and management of Linux dedicated game servers.

2
lgsm/data/name-left.csv

@ -105,4 +105,4 @@ wonderful
xenodochial
youthful
zealous
zen
zen

1 admiring
105 xenodochial
106 youthful
107 zealous
108 zen

2
lgsm/data/name-right.csv

@ -234,4 +234,4 @@ wright
wu
yalow
yonath
zhukovsky
zhukovsky

1 albattani
234 wu
235 yalow
236 yonath
237 zhukovsky

2
lgsm/modules/command_fastdl.sh

@ -219,7 +219,7 @@ fn_fastdl_preview() {
core_exit.sh
fi
if [ "${engine}" == "source" ]; then
if [ "${engine}" == "source" ]; then
echo -e "about to compress ${totalfiles} files, total size $(fn_human_readable_file_size "${filesizetotal}" 0)"
elif [ "${engine}" == "goldsrc" ]; then
echo -e "about to copy ${totalfiles} files, total size $(fn_human_readable_file_size "${filesizetotal}" 0)"

2
lgsm/modules/info_messages.sh

@ -598,7 +598,7 @@ fn_info_messages_script() {
echo -e "${lightblue}Gotify alert:\t${default}${gotifyalert}"
fi
# IFTTT alert
if [ "${iftttalert}" == "on" ]; then
if [ "${iftttalert}" == "on" ]; then
echo -e "${lightblue}IFTTT alert:\t${default}${iftttalert}"
fi
# Pushbullet alert

2
lgsm/modules/query_gsquery.py

@ -18,7 +18,7 @@ class gsquery:
server_response_timeout = 2
default_buffer_length = 1024
sourcequery = ('protocol-valve', 'avalanche3.0', 'barotrauma', 'madness', 'quakelive', 'realvirtuality',
'refractor', 'source', 'goldsrc', 'spark', 'starbound', 'unity3d', 'unreal4', 'wurm')
'refractor', 'source', 'goldsrc', 'spark', 'starbound', 'unity3d', 'unreal4', 'wurm')
idtech2query = ('protocol-quake2', 'idtech2', 'quake', 'iw2.0')
idtech3query = ('protocol-quake3', 'iw3.0', 'ioquake3', 'qfusion')
minecraftquery = ('minecraft', 'lwjgl2')

Loading…
Cancel
Save