V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 39s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 39s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
# SPDX-PackageName: CISS.debian.live.builder
|
||||
# SPDX-Security-Contact: security@coresecret.eu
|
||||
|
||||
guard_sourcing
|
||||
|
||||
#######################################
|
||||
# Clean Up Wrapper on Trap on 'EXIT'.
|
||||
# Globals:
|
||||
@@ -17,9 +19,9 @@
|
||||
# VAR_KERNEL_INF
|
||||
# VAR_KERNEL_SRT
|
||||
# VAR_KERNEL_TMP
|
||||
# VAR_WORKDIR
|
||||
# VAR_NOTES
|
||||
# Arguments:
|
||||
# $1: ${var_trap_on_exit_code} of trap_exit()
|
||||
# 1: ${var_trap_on_exit_code} of trap_exit()
|
||||
#######################################
|
||||
clean_up() {
|
||||
declare var_clean_exit_code="$1"
|
||||
@@ -27,11 +29,11 @@ clean_up() {
|
||||
rm -f -- "${VAR_KERNEL_SRT}"
|
||||
rm -f -- "${VAR_KERNEL_TMP}"
|
||||
rm -f -- "${VAR_NOTES}"
|
||||
# Release advisory lock on FD 127.
|
||||
### Release advisory lock on FD 127.
|
||||
flock -u 127
|
||||
# Close file descriptor 127.
|
||||
### Close file descriptor 127.
|
||||
exec 127>&-
|
||||
# Remove the lockfile artifact.
|
||||
### Remove the lockfile artifact.
|
||||
rm -f /run/lock/ciss_debian_installer.lock
|
||||
if (( var_clean_exit_code == 0 )); then rm -f -- "${LOG_ERR}"; fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user