There are a few possible answers to this, but in the particular case where one shell script calls another program or script at the end, the answer is easy. Use exec: #!/bin/bash # Do stuff here ... # ...
In Jack Wallen’s How to Make Tech Work tutorial, he shows how using the Docker exec command provides you with more flexibility. Did you know you can issue commands within a running Docker container?
Running exec with more than one word would cause an error. bin/kamal app exec -i "/bin/bash": Works fine bin/kamal app exec -i "bin/rails console" - Will raise an ...