Skip to content

Commit c8463a0

Browse files
authored
Update check-all.sh (openimsdk#1573)
1 parent f1c9686 commit c8463a0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/check-all.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ openim::log::info "\n# Begin to check all openim service"
3333
# OpenIM status
3434
# Elegant printing function
3535
print_services_and_ports() {
36-
declare -g service_names=("${!1}")
37-
declare -g service_ports=("${!2}")
36+
local -n service_names=$1
37+
local -n service_ports=$2
3838

3939
echo "+-------------------------+----------+"
4040
echo "| Service Name | Port |"
@@ -89,4 +89,4 @@ else
8989
echo "++++ Check all openim service ports successfully !"
9090
fi
9191

92-
set -e
92+
set -e

0 commit comments

Comments
 (0)