Conduit swallows exit codes
Closed this issue · 0 comments
dwaynebailey commented
I'm using conduit to supply VCAP_SERVICES
to a bash script which does some processing. If the bash script fails conduit is swallowing the exit code.
Conduit should return the exit coder from my subcommand so that I can perform additional actions if required.
Here's a simple examples:
exit.sh
#!/bin/bash
exit 1
Normal operation:
$ ./exit.sh
$ echo $?
1
Wrapped by conduit:
$ cf7 conduit db -- ./exit.sh
OK Connecting client
...
OK Waiting for conduit app to become available
OK Fetching service infomation
OK Binding db
OK Fetching environment
OK Starting port forwarding
OK Waiting for port forwarding
OK Preparing command: ./exit.sh
$ echo $?
0