GameServerManagers / GameServerManagers/LinuxGSM
[Bug]: integer expression expected in script in rustserver
- Dominant language
- Shell
- Stars
- 4.9k
- Forks
- 864
- PR merge metrics
- No merged PRs in 30d
Description
### User story
As a server admin, I'd like this resolved so I know theres no issues when executing rust server scripts
### Game
Rust
### Linux distro
Other
### Command
command: stop, command: restart, command: details
### Further information
[pvehard@games ~]$ ./rustserver details
/home/pvehard/lgsm/modules/info_distro.sh: line 100: [: : integer expression expected
Im running on AlmaLinux ver 8.9.
I added some debugging to the script to narrow down the problem. It seems line 100 gets called twice. The 1st time it's empty (this seems to cause the error) and the 2nd time it contains 8.9
my os-release file is in the log output section
This error seems to have been occuring for a few months now. It appears to not be causing a problem, but I can't be sure.
### Relevant log output
```shell
[rustserver@games ~]$ cat /etc/os-release
NAME="AlmaLinux"
VERSION="8.9 (Midnight Oncilla)"
ID="almalinux"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.9"
PLATFORM_ID="platform:el8"
PRETTY_NAME="AlmaLinux 8.9 (Midnight Oncilla)"
ANSI_COLOR="0;34"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:almalinux:almalinux:8::baseos"
HOME_URL="https://almalinux.org/"
DOCUMENTATION_URL="https://wiki.almalinux.org/"
BUG_REPORT_URL="https://bugs.almalinux.org/"
ALMALINUX_MANTISBT_PROJECT="AlmaLinux-8"
ALMALINUX_MANTISBT_PROJECT_VERSION="8.9"
REDHAT_SUPPORT_PRODUCT="AlmaLinux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.9"
[rustserver@games ~]$
```
### Steps to reproduce
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.