Merge pull request #4214 from MilhouseVH/le10_fix_tools_ctrl_c

buildsystem: allow onexit trap to be selectively ignored
This commit is contained in:
Matthias Reichl 2020-02-19 11:32:32 +01:00 committed by GitHub
commit 3d6deae4b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View File

@ -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() {

View File

@ -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

View File

@ -5,6 +5,8 @@
set -e
export NOONEXIT=yes
[ -z "${DEBUG_LOG}" ] && DEBUG_LOG=/tmp/distro-tool.log
LIBREELEC_DIR=$HOME/LibreELEC.tv