V8.13.294.2025.10.28
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m38s

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-10-28 12:01:27 +01:00
parent d7c94122d0
commit cbbd855ca7
5 changed files with 95 additions and 35 deletions

View File

@@ -11,7 +11,9 @@
# SPDX-Security-Contact: security@coresecret.eu
#######################################
# Prevent the file to be sourced twice.
# Prevents the file to be sourced twice.
# Globals:
# None
# Arguments:
# 1: File to source.
#######################################
@@ -25,4 +27,7 @@ source_guard() {
. "${var_file}"
fi
}
### Prevents accidental 'unset -f'.
# shellcheck disable=SC2034
readonly -f source_guard
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh