refactor(helpers): echo docker run result code on exit

This commit is contained in:
Asif Bacchus 2021-07-27 16:04:31 -06:00
parent fb81443cba
commit 4d5f3fa809

View File

@ -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