Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4 from testcontainers/change-exit-code-handling
Browse files Browse the repository at this point in the history
Change exit code handling to fix erroneous error code being emitted
  • Loading branch information
rnorth authored Mar 14, 2019
2 parents 8059fdb + 1ff4dda commit d8229bd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ echo $CMD
echo -e "\n\n"
set +e
eval $CMD
EXIT_CODE=$!
CMD_EXIT_CODE=$?
echo; echo
echo "🏁 Exit code: $CMD_EXIT_CODE"

mkdir -p $IMAGE_CACHE_DIR
docker image prune -f
Expand All @@ -89,4 +91,4 @@ for IMAGE in $(docker image ls -q); do
fi
done

exit $EXIT_CODE
exit $CMD_EXIT_CODE

0 comments on commit d8229bd

Please sign in to comment.