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

hxd pushed a commit to branch bugfix-start-cli-e
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 1ac49a00deee425493c4527dce1f7f2f2a3ea34e
Author: xiangdong huang <[email protected]>
AuthorDate: Wed Nov 2 08:57:27 2022 +0800

    fix start-cli.sh does not support -e
---
 cli/src/assembly/resources/sbin/start-cli.sh | 29 ----------------------------
 1 file changed, 29 deletions(-)

diff --git a/cli/src/assembly/resources/sbin/start-cli.sh 
b/cli/src/assembly/resources/sbin/start-cli.sh
index dbeedc7250..b082172afd 100644
--- a/cli/src/assembly/resources/sbin/start-cli.sh
+++ b/cli/src/assembly/resources/sbin/start-cli.sh
@@ -53,35 +53,6 @@ else
     JAVA=java
 fi
 
-PARAMETERS="$@"
-
-# if [ $# -eq 0 ]
-# then
-#      PARAMETERS="-h 127.0.0.1 -p 6667 -u root -pw root"
-# fi
-
-# Added parameters when default parameters are missing
-
-# sh version
-case "$PARAMETERS" in
-*"-pw "*) PARAMETERS=$PARAMETERS ;;
-*            ) PARAMETERS="-pw root $PARAMETERS" ;;
-esac
-case "$PARAMETERS" in
-*"-u "*) PARAMETERS=$PARAMETERS ;;
-*            ) PARAMETERS="-u root $PARAMETERS" ;;
-esac
-case "$PARAMETERS" in
-*"-p "*) PARAMETERS=$PARAMETERS ;;
-*            ) PARAMETERS="-p 6667 $PARAMETERS" ;;
-esac
-case "$PARAMETERS" in
-*"-h "*) PARAMETERS=$PARAMETERS ;;
-*            ) PARAMETERS="-h 127.0.0.1 $PARAMETERS" ;;
-esac
-
-# echo $PARAMETERS
-
 set -o noglob
 
iotdb_cli_params="-Dlogback.configurationFile=${IOTDB_CLI_CONF}/logback-cli.xml"
 exec "$JAVA" $iotdb_cli_params -cp "$CLASSPATH" "$MAIN_CLASS" $PARAMETERS

Reply via email to