armbian-next: mktemp and tmpfs related utility functions with automatic cleanup handlers

This commit is contained in:
Ricardo Pardini
2023-01-17 23:48:47 +01:00
parent af7ace7e57
commit 0ea0fe3528
3 changed files with 84 additions and 0 deletions

View File

@@ -532,6 +532,15 @@ set -o errexit ## set -e : exit the script if any statement returns a non-true
# shellcheck source=lib/functions/host/host-utils.sh
source "${SRC}"/lib/functions/host/host-utils.sh
# no errors tolerated. invoked before each sourced file to make sure.
#set -o pipefail # trace ERR through pipes - will be enabled "soon"
#set -o nounset ## set -u : exit the script if you try to use an uninitialised variable - one day will be enabled
set -o errtrace # trace ERR through - enabled
set -o errexit ## set -e : exit the script if any statement returns a non-true return value - enabled
### lib/functions/host/mktemp-utils.sh
# shellcheck source=lib/functions/host/mktemp-utils.sh
source "${SRC}"/lib/functions/host/mktemp-utils.sh
# no errors tolerated. invoked before each sourced file to make sure.
#set -o pipefail # trace ERR through pipes - will be enabled "soon"
#set -o nounset ## set -u : exit the script if you try to use an uninitialised variable - one day will be enabled