mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 14:37:59 +00:00
Merge pull request #4214 from MilhouseVH/le10_fix_tools_ctrl_c
buildsystem: allow onexit trap to be selectively ignored
This commit is contained in:
commit
3d6deae4b1
@ -28,7 +28,7 @@ onexitcleanup() {
|
||||
fi
|
||||
fi
|
||||
}
|
||||
trap "onexitcleanup $0 $@" EXIT
|
||||
[ "${NOONEXIT}" != "yes" ] && trap "onexitcleanup $0 $@" EXIT
|
||||
|
||||
# return 0 if $2 in space-separated list $1, otherwise return 1
|
||||
listcontains() {
|
||||
|
@ -3,6 +3,8 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
export NOONEXIT=yes
|
||||
|
||||
cd "$(readlink -f "$(dirname "$0")")/.."
|
||||
|
||||
export _CACHE_PACKAGE_LOCAL=none _CACHE_PACKAGE_GLOBAL=none _DEBUG_DEPENDS_LIST=none DEFAULT_PYTHON_VERSION=none
|
||||
|
@ -5,6 +5,8 @@
|
||||
|
||||
set -e
|
||||
|
||||
export NOONEXIT=yes
|
||||
|
||||
[ -z "${DEBUG_LOG}" ] && DEBUG_LOG=/tmp/distro-tool.log
|
||||
|
||||
LIBREELEC_DIR=$HOME/LibreELEC.tv
|
||||
|
Loading…
x
Reference in New Issue
Block a user