bootstrap: exit trap not called when sourcing
This commit is contained in:
parent
8e84b6d853
commit
181feef253
1 changed files with 5 additions and 9 deletions
14
bootstrap.sh
14
bootstrap.sh
|
@ -11,15 +11,6 @@ todo
|
||||||
- shrink icu data
|
- shrink icu data
|
||||||
'
|
'
|
||||||
|
|
||||||
# allow sourcing of script without
|
|
||||||
# causing the terminal to bail on error
|
|
||||||
function finish {
|
|
||||||
set +eu
|
|
||||||
set +o pipefail
|
|
||||||
}
|
|
||||||
|
|
||||||
trap finish EXIT
|
|
||||||
|
|
||||||
MASON_VERSION="7ed8931"
|
MASON_VERSION="7ed8931"
|
||||||
|
|
||||||
function setup_mason() {
|
function setup_mason() {
|
||||||
|
@ -155,3 +146,8 @@ function main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|
||||||
|
# allow sourcing of script without
|
||||||
|
# causing the terminal to bail on error
|
||||||
|
set +eu
|
||||||
|
set +o pipefail
|
||||||
|
|
Loading…
Add table
Reference in a new issue