Fixed shell issue with scale

This commit is contained in:
pader 2022-11-08 12:06:22 +08:00
parent 6f28cc3e17
commit c404421e5e

View File

@ -17,7 +17,7 @@ export CUSTOM_SEARCH_LOCATIONS=file:${BASE_DIR}/conf/
export MEMBER_LIST=""
PLUGINS_DIR="/home/nacos/plugins/peer-finder"
function print_servers() {
if [[ ! -f "${CLUSTER_CONF}" ]]; then
if [[ ! -d "${PLUGINS_DIR}" ]]; then
echo "" >"$CLUSTER_CONF"
for server in ${NACOS_SERVERS}; do
echo "$server" >>"$CLUSTER_CONF"