Skip to content

Commit 0487d7f

Browse files
committed
codacy
1 parent c1beb3c commit 0487d7f

File tree

2 files changed

+39
-39
lines changed

2 files changed

+39
-39
lines changed

lgsm/functions/command_dev_query_raw.sh

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -28,169 +28,169 @@ echo -e "=================================================================="
2828
{
2929
echo -e "${lightblue}Port Name \tPort Number \tStatus \tTCP \tUDP${default}"
3030
if [ -v port ]; then
31-
echo -e "Game: \t${port} \t$(ss -tupl | grep ${port} | wc -l) \t$(ss -tupl | grep ${port} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${port} | grep udp | awk '{ print $2 }')"
31+
echo -e "Game: \t${port} \t$(ss -tupl | grep -c ${port}) \t$(ss -tupl | grep ${port} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${port} | grep udp | awk '{ print $2 }')"
3232
else
3333
echo -e "Game:"
3434
fi
3535
if [ "${shortname}" == "rw" ]; then
3636
if [ -v port2 ]; then
37-
echo -e "Game+1: \t${port2} \t$(ss -tupl | grep ${port} | wc -l) \t$(ss -tupl | grep ${port2} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${port2} | grep udp | awk '{ print $2 }')"
37+
echo -e "Game+1: \t${port2} \t$(ss -tupl | grep -c ${port}) \t$(ss -tupl | grep ${port2} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${port2} | grep udp | awk '{ print $2 }')"
3838
else
3939
echo -e "Game+1:"
4040
fi
4141

4242
if [ -v port3 ]; then
43-
echo -e "Game+2: \t${port3} \t$(ss -tupl | grep ${port} | wc -l) \t$(ss -tupl | grep ${port3} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${port3} | grep udp | awk '{ print $2 }')"
43+
echo -e "Game+2: \t${port3} \t$(ss -tupl | grep -c ${port}) \t$(ss -tupl | grep ${port3} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${port3} | grep udp | awk '{ print $2 }')"
4444
else
4545
echo -e "Game+2:"
4646
fi
4747

4848
if [ -v port4 ]; then
49-
echo -e "Game+3: \t${port4} \t$(ss -tupl | grep ${port} | wc -l) \t$(ss -tupl | grep ${port4} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${port4} | grep udp | awk '{ print $2 }')"
49+
echo -e "Game+3: \t${port4} \t$(ss -tupl | grep -c ${port}) \t$(ss -tupl | grep ${port4} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${port4} | grep udp | awk '{ print $2 }')"
5050
else
5151
echo -e "Game+3:"
5252
fi
5353
fi
5454

5555
if [ -v port401 ]; then
56-
echo -e "Game+400: \t${port401} \t$(ss -tupl | grep ${port401} | wc -l) \t$(ss -tupl | grep ${port401} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${port401} | grep udp | awk '{ print $2 }')"
56+
echo -e "Game+400: \t${port401} \t$(ss -tupl | grep -c ${port401}) \t$(ss -tupl | grep ${port401} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${port401} | grep udp | awk '{ print $2 }')"
5757
else
5858
echo -e "Game+400:"
5959
fi
6060

6161
if [ -v portipv6 ]; then
62-
echo -e "Game ipv6: \t${portipv6} \t$(ss -tupl | grep ${portipv6} | wc -l) \t$(ss -tupl | grep ${portipv6} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${portipv6} | grep udp | awk '{ print $2 }')"
62+
echo -e "Game ipv6: \t${portipv6} \t$(ss -tupl | grep -c ${portipv6}) \t$(ss -tupl | grep ${portipv6} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${portipv6} | grep udp | awk '{ print $2 }')"
6363
else
6464
echo -e "Game ipv6:"
6565
fi
6666

6767
if [ -v queryport ]; then
68-
echo -e "Query: \t${queryport} \t$(ss -tupl | grep ${queryport} | wc -l) \t$(ss -tupl | grep ${queryport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${queryport} | grep udp | awk '{ print $2 }')"
68+
echo -e "Query: \t${queryport} \t$(ss -tupl | grep -c ${queryport}) \t$(ss -tupl | grep ${queryport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${queryport} | grep udp | awk '{ print $2 }')"
6969
else
7070
echo -e "Query:"
7171
fi
7272

7373
if [ -v httpport ]; then
74-
echo -e "HTTP: \t${httpport} \t$(ss -tupl | grep ${httpport} | wc -l) \t$(ss -tupl | grep ${httpport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${httpport} | grep udp | awk '{ print $2 }')"
74+
echo -e "HTTP: \t${httpport} \t$(ss -tupl | grep -c ${httpport}) \t$(ss -tupl | grep ${httpport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${httpport} | grep udp | awk '{ print $2 }')"
7575
else
7676
echo -e "HTTP:"
7777
fi
7878

7979
if [ -v httpqueryport ]; then
80-
echo -e "HTTP Query: \t${httpqueryport} \t$(ss -tupl | grep ${httpqueryport} | wc -l) \t$(ss -tupl | grep ${httpqueryport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${httpqueryport} | grep udp | awk '{ print $2 }')"
80+
echo -e "HTTP Query: \t${httpqueryport} \t$(ss -tupl | grep -c ${httpqueryport}) \t$(ss -tupl | grep ${httpqueryport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${httpqueryport} | grep udp | awk '{ print $2 }')"
8181
else
8282
echo -e "HTTP Query:"
8383
fi
8484

8585
if [ -v webadminport ]; then
86-
echo -e "Web Admin: \t${webadminport} \t$(ss -tupl | grep ${webadminport} | wc -l) \t$(ss -tupl | grep ${webadminport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${webadminport} | grep udp | awk '{ print $2 }')"
86+
echo -e "Web Admin: \t${webadminport} \t$(ss -tupl | grep -c ${webadminport}) \t$(ss -tupl | grep ${webadminport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${webadminport} | grep udp | awk '{ print $2 }')"
8787
else
8888
echo -e "Web Admin:"
8989
fi
9090

9191
if [ -v clientport ]; then
92-
echo -e "Client: \t${clientport} \t$(ss -tupl | grep ${clientport} | wc -l) \t$(ss -tupl | grep ${clientport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${clientport} | grep udp | awk '{ print $2 }')"
92+
echo -e "Client: \t${clientport} \t$(ss -tupl | grep -c ${clientport}) \t$(ss -tupl | grep ${clientport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${clientport} | grep udp | awk '{ print $2 }')"
9393
else
9494
echo -e "Client:"
9595
fi
9696

9797
if [ -v rconport ]; then
98-
echo -e "RCON: \t${rconport} \t$(ss -tupl | grep ${rconport} | wc -l) \t$(ss -tupl | grep ${rconport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${rconport} | grep udp | awk '{ print $2 }')"
98+
echo -e "RCON: \t${rconport} \t$(ss -tupl | grep -c ${rconport}) \t$(ss -tupl | grep ${rconport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${rconport} | grep udp | awk '{ print $2 }')"
9999
else
100100
echo -e "RCON:"
101101
fi
102102

103103
if [ -v rawport ]; then
104-
echo -e "RAW UDP Socket: \t${rawport} \t$(ss -tupl | grep ${rawport} | wc -l) \t$(ss -tupl | grep ${rawport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${rawport} | grep udp | awk '{ print $2 }')"
104+
echo -e "RAW UDP Socket: \t${rawport} \t$(ss -tupl | grep -c ${rawport}) \t$(ss -tupl | grep ${rawport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${rawport} | grep udp | awk '{ print $2 }')"
105105
else
106106
echo -e "RAW UDP Socket:"
107107
fi
108108

109109
if [ -v masterport ]; then
110-
echo -e "Game: Master: \t${masterport} \t$(ss -tupl | grep ${masterport} | wc -l) \t$(ss -tupl | grep ${masterport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${masterport} | grep udp | awk '{ print $2 }')"
110+
echo -e "Game: Master: \t${masterport} \t$(ss -tupl | grep -c ${masterport}) \t$(ss -tupl | grep ${masterport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${masterport} | grep udp | awk '{ print $2 }')"
111111
else
112112
echo -e "Game: Master:"
113113
fi
114114

115115
if [ -v steamport ]; then
116-
echo -e "Steam: \t${steamport} \t$(ss -tupl | grep ${steamport} | wc -l) \t$(ss -tupl | grep ${steamport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${steamport} | grep udp | awk '{ print $2 }')"
116+
echo -e "Steam: \t${steamport} \t$(ss -tupl | grep -c ${steamport}) \t$(ss -tupl | grep ${steamport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${steamport} | grep udp | awk '{ print $2 }')"
117117
else
118118
echo -e "Steam:"
119119
fi
120120

121121
if [ -v steamauthport ]; then
122-
echo -e "Steam: Auth: \t${steamauthport} \t$(ss -tupl | grep ${steamauthport} | wc -l) \t$(ss -tupl | grep ${steamauthport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${steamauthport} | grep udp | awk '{ print $2 }')"
122+
echo -e "Steam: Auth: \t${steamauthport} \t$(ss -tupl | grep -c ${steamauthport}) \t$(ss -tupl | grep ${steamauthport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${steamauthport} | grep udp | awk '{ print $2 }')"
123123
else
124124
echo -e "Steam: Auth:"
125125
fi
126126

127127
if [ -v steammasterport ]; then
128-
echo -e "Steam: Master: \t${steammasterport} \t$(ss -tupl | grep ${steammasterport} | wc -l) \t$(ss -tupl | grep ${steammasterport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${steammasterport} | grep udp | awk '{ print $2 }')"
128+
echo -e "Steam: Master: \t${steammasterport} \t$(ss -tupl | grep -c ${steammasterport}) \t$(ss -tupl | grep ${steammasterport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${steammasterport} | grep udp | awk '{ print $2 }')"
129129
else
130130
echo -e "Steam: Master:"
131131
fi
132132

133133
if [ -v steamqueryport ]; then
134-
echo -e "Steam: Query: \t${steamqueryport} \t$(ss -tupl | grep ${steamqueryport} | wc -l) \t$(ss -tupl | grep ${steamqueryport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${steamqueryport} | grep udp | awk '{ print $2 }')"
134+
echo -e "Steam: Query: \t${steamqueryport} \t$(ss -tupl | grep -c ${steamqueryport}) \t$(ss -tupl | grep ${steamqueryport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${steamqueryport} | grep udp | awk '{ print $2 }')"
135135
else
136136
echo -e "Steam: Query:"
137137
fi
138138
if [ -v beaconport ]; then
139-
echo -e "Beacon: \t${beaconport} \t$(ss -tupl | grep ${beaconport} | wc -l) \t$(ss -tupl | grep ${beaconport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${beaconport} | grep udp | awk '{ print $2 }')"
139+
echo -e "Beacon: \t${beaconport} \t$(ss -tupl | grep -c ${beaconport}) \t$(ss -tupl | grep ${beaconport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${beaconport} | grep udp | awk '{ print $2 }')"
140140
else
141141
echo -e "Beacon:"
142142
fi
143143

144144
if [ -v appport ]; then
145-
echo -e "App: \t${appport} \t$(ss -tupl | grep ${appport} | wc -l) \t$(ss -tupl | grep ${appport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${appport} | grep udp | awk '{ print $2 }')"
145+
echo -e "App: \t${appport} \t$(ss -tupl | grep -c ${appport}) \t$(ss -tupl | grep ${appport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${appport} | grep udp | awk '{ print $2 }')"
146146
else
147147
echo -e "App:"
148148
fi
149149

150150
if [ -v telnetport ]; then
151-
echo -e "Telnet: \t${telnetport} \t$(ss -tupl | grep ${telnetport} | wc -l) \t$(ss -tupl | grep ${telnetport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${telnetport} | grep udp | awk '{ print $2 }')"
151+
echo -e "Telnet: \t${telnetport} \t$(ss -tupl | grep -c ${telnetport}) \t$(ss -tupl | grep ${telnetport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${telnetport} | grep udp | awk '{ print $2 }')"
152152
else
153153
echo -e "Telnet:"
154154
fi
155155

156156
if [ -v sourcetvport ]; then
157-
echo -e "SourceTV: \t${sourcetvport} \t$(ss -tupl | grep ${sourcetvport} | wc -l) \t$(ss -tupl | grep ${sourcetvport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${sourcetvport} | grep udp | awk '{ print $2 }')"
157+
echo -e "SourceTV: \t${sourcetvport} \t$(ss -tupl | grep -c ${sourcetvport}) \t$(ss -tupl | grep ${sourcetvport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${sourcetvport} | grep udp | awk '{ print $2 }')"
158158
else
159159
echo -e "SourceTV:"
160160
fi
161161

162162
if [ -v fileport ]; then
163-
echo -e "File: \t${fileport} \t$(ss -tupl | grep ${fileport} | wc -l) \t$(ss -tupl | grep ${fileport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${fileport} | grep udp | awk '{ print $2 }')"
163+
echo -e "File: \t${fileport} \t$(ss -tupl | grep -c ${fileport}) \t$(ss -tupl | grep ${fileport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${fileport} | grep udp | awk '{ print $2 }')"
164164
else
165165
echo -e "File:"
166166
fi
167167

168168
if [ -v udplinkport ]; then
169-
echo -e "UDP Link: \t${udplinkport} \t$(ss -tupl | grep ${udplinkport} | wc -l) \t$(ss -tupl | grep ${udplinkport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${udplinkport} | grep udp | awk '{ print $2 }')"
169+
echo -e "UDP Link: \t${udplinkport} \t$(ss -tupl | grep -c ${udplinkport}) \t$(ss -tupl | grep ${udplinkport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${udplinkport} | grep udp | awk '{ print $2 }')"
170170
else
171171
echo -e "UDP Link:"
172172
fi
173173

174174
if [ -v voiceport ]; then
175-
echo -e "Voice: \t${voiceport} \t$(ss -tupl | grep ${voiceport} | wc -l) \t$(ss -tupl | grep ${voiceport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${voiceport} | grep udp | awk '{ print $2 }')"
175+
echo -e "Voice: \t${voiceport} \t$(ss -tupl | grep -c ${voiceport}) \t$(ss -tupl | grep ${voiceport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${voiceport} | grep udp | awk '{ print $2 }')"
176176
else
177177
echo -e "Voice:"
178178
fi
179179

180180
if [ -v voiceunusedport ]; then
181-
echo -e "Voice (Unused): \t${voiceunusedport} \t$(ss -tupl | grep ${voiceunusedport} | wc -l) \t$(ss -tupl | grep ${voiceunusedport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${voiceunusedport} | grep udp | awk '{ print $2 }')"
181+
echo -e "Voice (Unused): \t${voiceunusedport} \t$(ss -tupl | grep -c ${voiceunusedport}) \t$(ss -tupl | grep ${voiceunusedport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${voiceunusedport} | grep udp | awk '{ print $2 }')"
182182
else
183183
echo -e "Voice (Unused):"
184184
fi
185185

186186
if [ -v battleeyeport ]; then
187-
echo -e "BattleEye: \t${battleeyeport} \t$(ss -tupl | grep ${battleeyeport} | wc -l) \t$(ss -tupl | grep ${battleeyeport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${battleeyeport} | grep udp | awk '{ print $2 }')"
187+
echo -e "BattleEye: \t${battleeyeport} \t$(ss -tupl | grep -c ${battleeyeport}) \t$(ss -tupl | grep ${battleeyeport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${battleeyeport} | grep udp | awk '{ print $2 }')"
188188
else
189189
echo -e "BattleEye:"
190190
fi
191191

192192
if [ -v statsport ]; then
193-
echo -e "Stats: \t${battleeyeport} \t$(ss -tupl | grep ${statsport} | wc -l) \t$(ss -tupl | grep ${statsport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${statsport} | grep udp | awk '{ print $2 }')"
193+
echo -e "Stats: \t${battleeyeport} \t$(ss -tupl | grep -c ${statsport}) \t$(ss -tupl | grep ${statsport} | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep ${statsport} | grep udp | awk '{ print $2 }')"
194194
else
195195
echo -e "Stats:"
196196
fi
@@ -210,10 +210,10 @@ echo -e ""
210210
echo -e "${lightgreen}Gamedig Raw Output${default}"
211211
echo -e "================================="
212212
echo -e ""
213-
if [ ! "$(command -v gamedig 2> /dev/null)" ]; then
213+
if [ ! "$(command -v gamedig 2>/dev/null)" ]; then
214214
fn_print_failure_nl "gamedig not installed"
215215
fi
216-
if [ ! "$(command -v jq 2> /dev/null)" ]; then
216+
if [ ! "$(command -v jq 2>/dev/null)" ]; then
217217
fn_print_failure_nl "jq not installed"
218218
fi
219219
for queryip in "${queryips[@]}"; do

lgsm/functions/command_fastdl.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ luafastdlfile="lgsm_cl_force_fastdl.lua"
2424
luafastdlfullpath="${luasvautorundir}/${luafastdlfile}"
2525

2626
# Check if bzip2 is installed.
27-
if [ ! "$(command -v bzip2 2> /dev/null)" ]; then
27+
if [ ! "$(command -v bzip2 2>/dev/null)" ]; then
2828
fn_print_fail "bzip2 is not installed"
2929
fn_script_log_fatal "bzip2 is not installed"
3030
core_exit.sh
@@ -133,7 +133,7 @@ fn_human_readable_file_size() {
133133
local factor="${item%:*}"
134134
local abbrev="${item#*:}"
135135
if [[ "${bytes}" -ge "${factor}" ]]; then
136-
size=$(bc -l <<< "${bytes} / ${factor}")
136+
size=$(bc -l <<<"${bytes} / ${factor}")
137137
printf "%.*f %s\n" "${precision}" "${size}" "${abbrev}"
138138
break
139139
fi
@@ -161,7 +161,7 @@ fn_fastdl_preview() {
161161
tput rc
162162
tput el
163163
echo -e "gathering ${allowed_extention} : ${fileswc}..."
164-
echo -e "${ext}" >> "${tmpdir}/fastdl_files_to_compress.txt"
164+
echo -e "${ext}" >>"${tmpdir}/fastdl_files_to_compress.txt"
165165
done < <(find . -type f -iname "${allowed_extention}")
166166
if [ ${fileswc} != 0 ]; then
167167
fn_print_ok_eol_nl
@@ -193,7 +193,7 @@ fn_fastdl_preview() {
193193
tput rc
194194
tput el
195195
echo -e "gathering ${directory} ${allowed_extention} : ${fileswc}..."
196-
echo -e "${ext}" >> "${tmpdir}/fastdl_files_to_compress.txt"
196+
echo -e "${ext}" >>"${tmpdir}/fastdl_files_to_compress.txt"
197197
done < <(find "${systemdir}/${directory}" -type f -iname "${allowed_extention}")
198198
tput rc
199199
tput el
@@ -210,7 +210,7 @@ fn_fastdl_preview() {
210210
if [ -f "${tmpdir}/fastdl_files_to_compress.txt" ]; then
211211
echo -e "calculating total file size..."
212212
fn_sleep_time
213-
totalfiles=$(wc -l < "${tmpdir}/fastdl_files_to_compress.txt")
213+
totalfiles=$(wc -l <"${tmpdir}/fastdl_files_to_compress.txt")
214214
# Calculates total file size.
215215
while read -r dufile; do
216216
filesize=$(stat -c %s "${dufile}")
@@ -221,7 +221,7 @@ fn_fastdl_preview() {
221221
fn_script_log_fatal "Calculating total file size."
222222
core_exit.sh
223223
fi
224-
done < "${tmpdir}/fastdl_files_to_compress.txt"
224+
done <"${tmpdir}/fastdl_files_to_compress.txt"
225225
else
226226
fn_print_fail_eol_nl "generating file list"
227227
fn_script_log_fatal "Generating file list."
@@ -304,12 +304,12 @@ fn_fastdl_gmod() {
304304
fi
305305
fi
306306
if [ -f "${tmpdir}/fastdl_files_to_compress.txt" ]; then
307-
totalfiles=$(wc -l < "${tmpdir}/fastdl_files_to_compress.txt")
307+
totalfiles=$(wc -l <"${tmpdir}/fastdl_files_to_compress.txt")
308308
# Calculates total file size.
309309
while read -r dufile; do
310310
filesize=$(du -b "${dufile}" | awk '{ print $1 }')
311311
filesizetotal=$((filesizetotal + filesize))
312-
done < "${tmpdir}/fastdl_files_to_compress.txt"
312+
done <"${tmpdir}/fastdl_files_to_compress.txt"
313313
fi
314314
}
315315

@@ -396,7 +396,7 @@ fn_fastdl_gmod_dl_enforcer() {
396396
touch "${luafastdlfullpath}"
397397
# Read all filenames and put them into a lua file at the right path.
398398
while read -r line; do
399-
echo -e "resource.AddFile( \"${line}\" )" >> "${luafastdlfullpath}"
399+
echo -e "resource.AddFile( \"${line}\" )" >>"${luafastdlfullpath}"
400400
done < <(find "${fastdldir:?}" \( -type f ! -name "*.bz2" \) -printf '%P\n')
401401
exitcode=$?
402402
if [ "${exitcode}" != 0 ]; then

0 commit comments

Comments
 (0)