Skip to content

Commit b9b641c

Browse files
committed
prettier
1 parent b07dac7 commit b9b641c

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

lgsm/functions/check_ip.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ info_game.sh
1212

1313
ip_commands_array=("/bin/ip" "/usr/sbin/ip" "ip")
1414
for ip_command in "${ip_commands_array[@]}"; do
15-
if [ "$(command -v ${ip_command} 2> /dev/null)" ]; then
15+
if [ "$(command -v "${ip_command}" 2> /dev/null)" ]; then
1616
ipcommand="${ip_command}"
1717
break
1818
fi
1919
done
2020

2121
ethtool_commands_array=("/bin/ethtool" "/usr/sbin/ethtool" "ethtool")
2222
for ethtool_command in "${ethtool_commands_array[@]}"; do
23-
if [ "$(command -v ${ethtool_command} 2> /dev/null)" ]; then
23+
if [ "$(command -v "${ethtool_command}" 2> /dev/null)" ]; then
2424
ethtoolcommand="${ethtool_command}"
2525
break
2626
fi
@@ -38,25 +38,25 @@ function fn_is_valid_ip() {
3838

3939
# If the IP variable has been set by user.
4040
if fn_is_valid_ip "${ip}"; then
41-
queryips=( "${ip}" )
42-
webadminip=( "${ip}" )
43-
telnetip=( "${ip}" )
41+
queryips=("${ip}")
42+
webadminip=("${ip}")
43+
telnetip=("${ip}")
4444
# If game config does have an IP set.
45-
elif fn_is_valid_ip "${configip}";then
46-
queryips=( "${configip}" )
45+
elif fn_is_valid_ip "${configip}"; then
46+
queryips=("${configip}")
4747
ip="${configip}"
4848
webadminip=("${configip}")
4949
telnetip=("${configip}")
5050
# If there is only 1 server IP address.
5151
# Some IP details can automaticly use the one IP
5252
elif [ "${#current_ips[@]}" == "1" ]; then
53-
queryips=( "127.0.0.1" "${current_ips[@]}" )
53+
queryips=("127.0.0.1" "${current_ips[@]}")
5454
ip="0.0.0.0"
5555
webadminip=("${current_ips[@]}")
5656
telnetip=("${current_ips[@]}")
5757
# If no ip is set by the user and server has more than one IP.
5858
else
59-
queryips=( "127.0.0.1" "${current_ips[@]}" )
59+
queryips=("127.0.0.1" "${current_ips[@]}")
6060
ip="0.0.0.0"
6161
webadminip=("${ip}")
6262
telnetip=("${ip}")

lgsm/functions/command_monitor.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ fn_monitor_check_queryport() {
7272
fn_print_dots "Checking port: "
7373
fn_print_checking_eol
7474
fn_script_log_info "Checking port: CHECKING"
75-
if [ -n "${rconenabled}" ] && [ "${rconenabled}" != "true" ] && [ ${shortname} == "av" ]; then
75+
if [ -n "${rconenabled}" ] && [ "${rconenabled}" != "true" ] && [ "${shortname}" == "av" ]; then
7676
fn_print_warn "Checking port: Unable to query, rcon is not enabled"
7777
fn_script_log_warn "Checking port: Unable to query, rcon is not enabled"
7878
else

0 commit comments

Comments
 (0)