Skip to content

Commit

Permalink
Merge pull request #12518 from keymanapp/chore/common/builddebug
Browse files Browse the repository at this point in the history
chore(common): allow to run `build.sh` scripts in `bashdb` debugger
  • Loading branch information
ermshiperete authored Oct 10, 2024
2 parents d2b0930 + 3232c2a commit 680e84d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/builder.inc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,10 @@ _builder_parse_expanded_parameters() {
# Note: if an error occurs within a script's function in a `set -e` script, it becomes an exit
# instead for the function's caller. So, we need both `err` and `exit` here.
# See https://medium.com/@dirk.avery/the-bash-trap-trap-ce6083f36700.
trap _builder_failure_trap err exit
if [[ -z "$(trap -p DEBUG)" ]]; then
# not running in bashdb
trap _builder_failure_trap err exit
fi
}

_builder_pad() {
Expand Down

0 comments on commit 680e84d

Please sign in to comment.