mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 15:07:49 +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
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
trap "onexitcleanup $0 $@" EXIT
|
[ "${NOONEXIT}" != "yes" ] && trap "onexitcleanup $0 $@" EXIT
|
||||||
|
|
||||||
# return 0 if $2 in space-separated list $1, otherwise return 1
|
# return 0 if $2 in space-separated list $1, otherwise return 1
|
||||||
listcontains() {
|
listcontains() {
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
# SPDX-License-Identifier: GPL-2.0
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
|
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
|
||||||
|
|
||||||
|
export NOONEXIT=yes
|
||||||
|
|
||||||
cd "$(readlink -f "$(dirname "$0")")/.."
|
cd "$(readlink -f "$(dirname "$0")")/.."
|
||||||
|
|
||||||
export _CACHE_PACKAGE_LOCAL=none _CACHE_PACKAGE_GLOBAL=none _DEBUG_DEPENDS_LIST=none DEFAULT_PYTHON_VERSION=none
|
export _CACHE_PACKAGE_LOCAL=none _CACHE_PACKAGE_GLOBAL=none _DEBUG_DEPENDS_LIST=none DEFAULT_PYTHON_VERSION=none
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
export NOONEXIT=yes
|
||||||
|
|
||||||
[ -z "${DEBUG_LOG}" ] && DEBUG_LOG=/tmp/distro-tool.log
|
[ -z "${DEBUG_LOG}" ] && DEBUG_LOG=/tmp/distro-tool.log
|
||||||
|
|
||||||
LIBREELEC_DIR=$HOME/LibreELEC.tv
|
LIBREELEC_DIR=$HOME/LibreELEC.tv
|
||||||
|
Loading…
x
Reference in New Issue
Block a user