File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -108,12 +108,12 @@ for queryattempt in {1..5}; do
108
108
fn_print_querying_eol
109
109
fn_script_log_info " Querying port: ${querymethod} : ${queryip} :${queryport} : ${queryattempt} : QUERYING"
110
110
# querydelay
111
- if [ " $( cat " ${lockdir} /${selfname} .lock" ) " -gt " $( date " +%s" -d " ${querydelay} mins ago" ) " ]; then
111
+ if [ " $( head -n 1 " ${lockdir} /${selfname} .lock" ) " -gt " $( date " +%s" -d " ${querydelay} mins ago" ) " ]; then
112
112
fn_print_ok " Querying port: ${querymethod} : ${ip} :${queryport} : ${totalseconds} /${queryattempt} : "
113
113
fn_print_delay_eol_nl
114
114
fn_script_log_info " Querying port: ${querymethod} : ${ip} :${queryport} : ${queryattempt} : DELAY"
115
115
fn_script_log_info " Query bypassed: ${gameservername} started less than ${querydelay} minutes ago"
116
- fn_script_log_info " Server started: $( date -d @$( cat " ${lockdir} /${selfname} .lock" ) ) "
116
+ fn_script_log_info " Server started: $( date -d @$( head -n 1 " ${lockdir} /${selfname} .lock" ) ) "
117
117
fn_script_log_info " Current time: $( date) "
118
118
monitorpass=1
119
119
core_exit.sh
You can’t perform that action at this time.
0 commit comments