V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m0s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m0s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -27,17 +27,28 @@ guard_sourcing
|
||||
#######################################
|
||||
clean_up() {
|
||||
declare var_clean_exit_code="$1"
|
||||
|
||||
rm -f -- "${VAR_KERNEL_INF}"
|
||||
rm -f -- "${VAR_KERNEL_SRT}"
|
||||
rm -f -- "${VAR_KERNEL_TMP}"
|
||||
rm -f -- "${VAR_NOTES}"
|
||||
|
||||
if [[ "${VAR_CHROOT_ACTIVATED}" == "system" ]]; then
|
||||
exiting_chroot_system
|
||||
elif [[ "${VAR_CHROOT_ACTIVATED}" == "recovery" ]]; then
|
||||
exiting_chroot_recovery
|
||||
fi
|
||||
|
||||
### Release advisory lock on FD 127.
|
||||
flock -u 127
|
||||
|
||||
### Close file descriptor 127.
|
||||
exec 127>&-
|
||||
|
||||
### Remove the lockfile artifact.
|
||||
rm -f /run/lock/ciss_debian_installer.lock
|
||||
if (( var_clean_exit_code == 0 )); then rm -f -- "${LOG_ERR}"; fi
|
||||
|
||||
return 0
|
||||
}
|
||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
||||
|
||||
Reference in New Issue
Block a user