In bash file myBig.sh
I call another two bash files like this:
/bin/bash myBuildShortServer.sh
/bin/bash myStart.sh
It's work... but has one problem.
I want to start myStart.sh
only after success execute myBuildShortServer.sh
.
Content of myBuildShortServer.sh
is this:
mvn install -Pruntime -DskipTests=true -f pom-server.xml
The bash file myBuildShortServer.sh
just start maven tasks (goals). And when success finish tasks print in console smt like this:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 30.254 s
[INFO] Finished at: 2022-06-06T12:05:43+03:00
[INFO] ------------------------------------------------------------------
So I need to start myStart.sh
ONLY after myBuildShortServer.sh
success finish.
Is it possible?