This is an automated email from the ASF dual-hosted git repository.

gaojun2048 pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/seatunnel.git


The following commit(s) were added to refs/heads/dev by this push:
     new 62eb82d448 [Bug] Ensure install-plugin.sh compatibility with sh on 
Debian #5630 (#5631)
62eb82d448 is described below

commit 62eb82d44830411d1e851d36c3c825ccfcd4a788
Author: Yan Xiaole <[email protected]>
AuthorDate: Thu Oct 19 11:52:24 2023 +0800

    [Bug] Ensure install-plugin.sh compatibility with sh on Debian #5630 (#5631)
---
 bin/install-plugin.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/bin/install-plugin.sh b/bin/install-plugin.sh
index f8dd59b367..569bbdd8ca 100755
--- a/bin/install-plugin.sh
+++ b/bin/install-plugin.sh
@@ -44,7 +44,9 @@ if [ ! -d ${SEATUNNEL_HOME}/connectors ];
 fi
 
 while read line; do
-    if  [ ${line:0:1} != "-" ] && [ ${line:0:1} != "#" ]
+    first_char=$(echo "$line" | cut -c 1)
+
+    if [ "$first_char" != "-" ] && [ "$first_char" != "#" ]
        then
                echo "install connector : " $line
                ${SEATUNNEL_HOME}/mvnw dependency:get 
-DgroupId=org.apache.seatunnel -DartifactId=${line} -Dversion=${version} 
-Ddest=${SEATUNNEL_HOME}/connectors

Reply via email to