mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-10 00:22:23 +08:00
Optimizing scripts
This commit is contained in:
parent
d2fc707f13
commit
e7da8d31fe
@ -2858,10 +2858,11 @@ function openim::util::find_process_ports() {
|
|||||||
local port_protocol=($line)
|
local port_protocol=($line)
|
||||||
local port=${port_protocol[0]##*:}
|
local port=${port_protocol[0]##*:}
|
||||||
local protocol=${port_protocol[1]}
|
local protocol=${port_protocol[1]}
|
||||||
protocol_ports=$protocol_ports "" $protocol" "$port
|
protocol_ports="${protocol_ports}${protocol} ${port}, "
|
||||||
echo "Process $process_path is listening on port $port with protocol $protocol"
|
echo "Process $process_path is listening on port $port with protocol $protocol"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
protocol_ports=${protocol_ports%, }
|
||||||
echo echo "Process $process_path is listening on protocol & port $protocol_ports "
|
echo echo "Process $process_path is listening on protocol & port $protocol_ports "
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user