From 7800ad5a9cc3bcb3b58486f20167907097cd49ec Mon Sep 17 00:00:00 2001 From: JasonN3 <33561705+JasonN3@users.noreply.github.com> Date: Tue, 5 Mar 2024 17:17:31 +0000 Subject: [PATCH] escape $ --- lorax_templates/scripts/post/enroll-secureboot-key | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lorax_templates/scripts/post/enroll-secureboot-key b/lorax_templates/scripts/post/enroll-secureboot-key index 5fa1402..cca4871 100755 --- a/lorax_templates/scripts/post/enroll-secureboot-key +++ b/lorax_templates/scripts/post/enroll-secureboot-key @@ -11,16 +11,16 @@ if [[ ! -d "/sys/firmware/efi" ]]; then exit 0 fi -if [[ ! -f "${SECUREBOOT_KEY}" ]]; then - echo "Secure boot key not provided: ${SECUREBOOT_KEY}" +if [[ ! -f "\${SECUREBOOT_KEY}" ]]; then + echo "Secure boot key not provided: \${SECUREBOOT_KEY}" exit 0 fi -SYS_ID="$(cat /sys/devices/virtual/dmi/id/product_name)" -if [[ ":Jupiter:Galileo:" =~ ":$SYS_ID:" ]]; then +SYS_ID="\$(cat /sys/devices/virtual/dmi/id/product_name)" +if [[ ":Jupiter:Galileo:" =~ ":\$SYS_ID:" ]]; then echo "Steam Deck hardware detected. Skipping key enrollment." exit 0 fi mokutil --timeout -1 || : -echo -e "${ENROLLMENT_PASSWORD}\n${ENROLLMENT_PASSWORD}" | mokutil --import "${SECUREBOOT_KEY}" || : +echo -e "\${ENROLLMENT_PASSWORD}\n\${ENROLLMENT_PASSWORD}" | mokutil --import "\${SECUREBOOT_KEY}" || :