mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
bootstrap: exit trap not called when sourcing
This commit is contained in:
parent
8e84b6d853
commit
181feef253
14
bootstrap.sh
14
bootstrap.sh
@ -11,15 +11,6 @@ todo
|
||||
- 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"
|
||||
|
||||
function setup_mason() {
|
||||
@ -155,3 +146,8 @@ function main() {
|
||||
}
|
||||
|
||||
main
|
||||
|
||||
# allow sourcing of script without
|
||||
# causing the terminal to bail on error
|
||||
set +eu
|
||||
set +o pipefail
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user