From c404421e5ed44b976ef7b8be29c0facadbc3c810 Mon Sep 17 00:00:00 2001 From: pader Date: Tue, 8 Nov 2022 12:06:22 +0800 Subject: [PATCH] Fixed shell issue with scale --- build/bin/docker-startup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/bin/docker-startup.sh b/build/bin/docker-startup.sh index baaa266..d88cf16 100755 --- a/build/bin/docker-startup.sh +++ b/build/bin/docker-startup.sh @@ -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"