V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 52s
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user