It is possible to set an option inside a Bash script such as set -o errexit. But how to do the reverse thing, that is, to unset an option?
set -o errexit
Change - to + to do the reverse thing of unseting an option in bash. For example, to unset the errexit option set by set -o errexit:
set +o errexit