Sample Header Ad - 728x90

How to disable stopping a bash script from executing after calling some command?

1 vote
1 answer
691 views
I am trying to create a bash script to deploy an application. Prior to deploying, the application must be built using maven. The problem is, once the maven build finishes, the next command is never called. It seems like maven issues some signal to terminate any further execution. E.g. in the following script, the Hello world is never written to standard output. #!/bin/sh exec mvn -DskipTests -Darguments=-DskipTests clean install echo "Hello world" Is there a way how to go around this limitation?
Asked by Andy (121 rep)
Nov 3, 2018, 04:53 PM
Last activity: Nov 3, 2018, 06:44 PM