This is an automated email from the ASF dual-hosted git repository.
dockerzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git
The following commit(s) were added to refs/heads/master by this push:
new f272ccf1dd [INLONG-11875][Manager] Fix the startup script in
standalone deployment mode does not copy module dependencies (#11876)
f272ccf1dd is described below
commit f272ccf1dd6c8dea197c3edc310d619a60690870
Author: yfsn666 <[email protected]>
AuthorDate: Fri May 30 16:50:24 2025 +0800
[INLONG-11875][Manager] Fix the startup script in standalone deployment
mode does not copy module dependencies (#11876)
Co-authored-by: jameswyli <[email protected]>
---
inlong-distribution/script/prepare_module_dependencies.sh | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/inlong-distribution/script/prepare_module_dependencies.sh
b/inlong-distribution/script/prepare_module_dependencies.sh
index 13a73cf6e1..974f7127c5 100644
--- a/inlong-distribution/script/prepare_module_dependencies.sh
+++ b/inlong-distribution/script/prepare_module_dependencies.sh
@@ -20,12 +20,8 @@
#
cd "$(dirname "$0")"/../ || exit
-jar_file_num=`ls -l $1 |grep jar |wc -l`
-
-if [ $jar_file_num -eq 0 ]; then
- if [ -e $1/dependencys.txt ]; then
- for line in $(cat "$1/dependencys.txt"); do
- cp "./lib/$line" $1/
- done
- fi
+if [ -e $1/dependencys.txt ]; then
+ for line in $(cat "$1/dependencys.txt"); do
+ cp -n "./lib/$line" $1/ 2>/dev/null
+ done
fi