summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/datalake-handler/feeder/src/assembly/run.sh13
1 files changed, 8 insertions, 5 deletions
diff --git a/components/datalake-handler/feeder/src/assembly/run.sh b/components/datalake-handler/feeder/src/assembly/run.sh
index a061bfcf..0f9bac41 100644
--- a/components/datalake-handler/feeder/src/assembly/run.sh
+++ b/components/datalake-handler/feeder/src/assembly/run.sh
@@ -6,10 +6,13 @@ echo "start init db ..."
echo "finish init db"
-cmd=`ls feeder-*.jar`
-if [ -z "$cmd" ]; then
- echo "STRING is empty"
- sleep 10000
-else
+cmd=`find . -regex '\./feeder-[0-9]+\.[0-9]+\.[0-9]+[-SNAPSHOT]+\.jar'`
+cmd1= `find . -regex '\./feeder-[0-9]+\.[0-9]+\.[0-9]+\.jar'`
+if [ -n "$cmd" ]; then
+ java -jar $cmd
+elif [ -n "$cmd1" ]; then
java -jar $cmd
+else
+ echo"STRING is empty"
+ sleep 10000
fi