Script Refactoring

This commit is contained in:
skiffer-git 2024-04-02 17:07:21 +08:00
parent aa151878f9
commit 1a6e850671

View File

@ -2477,9 +2477,9 @@ function openim::util::print_binary_ports() {
ports=$(echo "$ports" | xargs | tr ' ' '\n' | uniq | tr '\n' ' ')
if [ -z "$ports" ]; then
echo "$binary_path is not listening on any ports."
echo "$binary_path is not listening on any ports." ["$ports"]
else
echo "$binary_path is listening on the following ports: $ports"
echo "$binary_path is listening on the following ports: $ports" ["$ports"]
fi
else
echo "$binary_path is not running."