refactor(helpers): echo docker run result code on exit
This commit is contained in:
parent
fb81443cba
commit
4d5f3fa809
@ -4,8 +4,6 @@
|
|||||||
# start ab-nginx container using params file variables
|
# start ab-nginx container using params file variables
|
||||||
#
|
#
|
||||||
|
|
||||||
# TODO: add error trapping on docker run statements
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# text formatting presets
|
# text formatting presets
|
||||||
if command -v tput >/dev/null; then
|
if command -v tput >/dev/null; then
|
||||||
@ -358,8 +356,8 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# exit gracefully
|
# exit with code from docker
|
||||||
exit 0
|
exit "$?"
|
||||||
|
|
||||||
#
|
#
|
||||||
# exit return codes
|
# exit return codes
|
||||||
@ -371,5 +369,6 @@ exit 0
|
|||||||
# 11 no container found with specified name
|
# 11 no container found with specified name
|
||||||
# 12 unable to stop container
|
# 12 unable to stop container
|
||||||
# 13 unable to remove container
|
# 13 unable to remove container
|
||||||
|
# other refer to docker exit codes
|
||||||
|
|
||||||
#EOF
|
#EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user