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

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-09-02 20:49:23 +02:00
parent 685ea1699b
commit cd66500f65
2 changed files with 4 additions and 12 deletions

View File

@@ -59,16 +59,8 @@ update_grub_bootparameter() {
fi
if [[ "${VAR_NUKE}" == "true" ]]; then
### 1) Escape every '$' so GRUB won't expand it.
#var_nuke_esc="${VAR_NUKE_HASH//$/\\$}"
### 2) Wrap the value in single quotes, so the dollar signs survive GRUB parsing.
#var_nuke_string="nuke='${var_nuke_esc}'"
### 3) Append to accumulating cmdline variable. Space-prefix ensures clean concatenation.
var_nuke_string="nuke=${VAR_NUKE_HASH}"
var_nuke_esc="${VAR_NUKE_HASH//$/\\$}"
var_nuke_string="nuke=${var_nuke_esc}"
# shellcheck disable=SC2034
VV_GRUB_CMDLINE_LINUX="${VV_GRUB_CMDLINE_LINUX} ${var_nuke_string}"
fi