diff options
Diffstat (limited to 'components/datalake-handler/des/src/assembly/run.sh')
-rw-r--r-- | components/datalake-handler/des/src/assembly/run.sh | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/components/datalake-handler/des/src/assembly/run.sh b/components/datalake-handler/des/src/assembly/run.sh index 42e6f134..decd97e0 100644 --- a/components/datalake-handler/des/src/assembly/run.sh +++ b/components/datalake-handler/des/src/assembly/run.sh @@ -15,6 +15,7 @@ # # SPDX-License-Identifier: Apache-2.0 # ============LICENSE_END===================================================== + #!/bin/sh echo "start init db ..." @@ -23,19 +24,10 @@ echo "start init db ..." echo "finish init db" -cmd=`find . -regex '\./des-[0-9]+\.[0-9]+\.[0-9]+[-SNAPSHOT]+\.jar'` -cmd1=`find . -regex '\./des-[0-9]+\.[0-9]+\.[0-9]+\.jar'` -cmd2=`find . -regex '\./des-[0-9]+\.[0-9]+\.[0-9]+[-execute]+\.jar'` -cmd3=`find . -regex '\./des-[0-9]+\.[0-9]+\.[0-9]+[-SNAPSHOT]+[-execute]+\.jar'` +cmd=`find . -name des*-execute.jar` if [ -n "$cmd" ]; then java -jar "$cmd" -elif [ -n "$cmd1" ]; then - java -jar "$cmd1" -elif [ -n "$cmd2" ]; then - java -jar "$cmd2" -elif [ -n "$cmd3" ]; then - java -jar "$cmd3" else echo "STRING is empty" sleep 10000 |