V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 52s

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-08-13 10:29:32 +02:00
parent 0236984834
commit 5d28e91bcb
4 changed files with 44 additions and 59 deletions

View File

@@ -114,6 +114,8 @@ insert_comments() {
*) var_name="${of_file}" ;;
esac
guard_trace on
sed -i '/^# SPDX-Security-Contact: security@coresecret\.eu$/a\
\
# Static file system information: '"${var_name}"'\
@@ -121,6 +123,9 @@ insert_comments() {
# Architecture: '"${VAR_ARCHITECTURE}"'\
# Distribution: '"${VAR_CODENAME}"'
' "${of_file}"
guard_trace off
return 0
}
@@ -134,6 +139,8 @@ insert_comments() {
# 0: on success
#######################################
insert_header() {
guard_trace on
cat << EOF >| "${1}"
# SPDX-CreationInfo: ${VAR_DATE}; WEIDNER, Marc S.; <msw@coresecret.dev>
# SPDX-ExternalRef: GIT https://git.coresecret.dev/msw/CISS.debian.installer.git
@@ -146,7 +153,11 @@ insert_header() {
# SPDX-Security-Contact: security@coresecret.eu
EOF
guard_trace off
chmod 0644 "${1}"
return 0
}