mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
escape $
This commit is contained in:
parent
2ccd355710
commit
7800ad5a9c
1 changed files with 5 additions and 5 deletions
|
|
@ -11,16 +11,16 @@ if [[ ! -d "/sys/firmware/efi" ]]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -f "${SECUREBOOT_KEY}" ]]; then
|
if [[ ! -f "\${SECUREBOOT_KEY}" ]]; then
|
||||||
echo "Secure boot key not provided: ${SECUREBOOT_KEY}"
|
echo "Secure boot key not provided: \${SECUREBOOT_KEY}"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SYS_ID="$(cat /sys/devices/virtual/dmi/id/product_name)"
|
SYS_ID="\$(cat /sys/devices/virtual/dmi/id/product_name)"
|
||||||
if [[ ":Jupiter:Galileo:" =~ ":$SYS_ID:" ]]; then
|
if [[ ":Jupiter:Galileo:" =~ ":\$SYS_ID:" ]]; then
|
||||||
echo "Steam Deck hardware detected. Skipping key enrollment."
|
echo "Steam Deck hardware detected. Skipping key enrollment."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mokutil --timeout -1 || :
|
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}" || :
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue