This is an automated email from the ASF dual-hosted git repository.
tyrantlucifer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-seatunnel.git
The following commit(s) were added to refs/heads/dev by this push:
new e109db903 [Improve][Shell] Remove redundant code of install-plugin.sh
(#4153)
e109db903 is described below
commit e109db903f9ca65e00517cab3dd7f71bc51a9d5b
Author: TaoZex <[email protected]>
AuthorDate: Mon Feb 20 22:48:43 2023 +0800
[Improve][Shell] Remove redundant code of install-plugin.sh (#4153)
* [Improve] [bin] Remove redundant shell for install-plugin.sh
* fix
* fix dir
* fix conf
---
bin/install-plugin.sh | 45 +--------------------------------------------
1 file changed, 1 insertion(+), 44 deletions(-)
diff --git a/bin/install-plugin.sh b/bin/install-plugin.sh
index ff4144eed..35a4dbec2 100644
--- a/bin/install-plugin.sh
+++ b/bin/install-plugin.sh
@@ -43,27 +43,6 @@ if [ ! -d ${SEATUNNEL_HOME}/connectors ];
echo "create connectors directory"
fi
-# create the flink-sql connectors directory (for v1)
-if [ ! -d ${SEATUNNEL_HOME}/connectors/flink-sql ];
- then
- mkdir ${SEATUNNEL_HOME}/connectors/flink-sql
- echo "create flink-sql connectors directory"
-fi
-
-# create the flink connectors directory (for v1)
-if [ ! -d ${SEATUNNEL_HOME}/connectors/flink ];
- then
- mkdir ${SEATUNNEL_HOME}/connectors/flink
- echo "create flink connectors directory"
-fi
-
-# create the spark connectors directory (for v1)
-if [ ! -d ${SEATUNNEL_HOME}/connectors/spark ];
- then
- mkdir ${SEATUNNEL_HOME}/connectors/spark
- echo "create spark connectors directory"
-fi
-
# create the seatunnel connectors directory (for v2)
if [ ! -d ${SEATUNNEL_HOME}/connectors/seatunnel ];
then
@@ -71,33 +50,11 @@ if [ ! -d ${SEATUNNEL_HOME}/connectors/seatunnel ];
echo "create seatunnel connectors directory"
fi
-path=flink-sql
-
while read line; do
- # v1 connectors flink-sql
- if [ "$line" = "--flink-sql-connectors--" ]
- then
- path=flink-sql
- fi
- # v1 connectors flink
- if [ "$line" = "--flink-connectors--" ]
- then
- path=flink
- fi
- # v1 connectors spark
- if [ "$line" = "--spark-connectors--" ]
- then
- path=spark
- fi
- # v2 connectors
- if [ "$line" = "--connectors-v2--" ]
- then
- path=seatunnel
- fi
if [ ${line:0:1} != "-" ] && [ ${line:0:1} != "#" ]
then
echo "install connector : " $line
- ${SEATUNNEL_HOME}/mvnw dependency:get
-DgroupId=org.apache.seatunnel -DartifactId=${line} -Dversion=${version}
-Ddest=${SEATUNNEL_HOME}/connectors/${path}
+ ${SEATUNNEL_HOME}/mvnw dependency:get
-DgroupId=org.apache.seatunnel -DartifactId=${line} -Dversion=${version}
-Ddest=${SEATUNNEL_HOME}/connectors/seatunnel
fi
done < ${SEATUNNEL_HOME}/config/plugin_config
\ No newline at end of file