1
0
Fork 0
mirror of https://github.com/JasonN3/build-container-installer.git synced 2025-12-25 19:07:54 +01:00

remove curly braces

This commit is contained in:
JasonN3 2024-03-05 17:28:19 +00:00
parent 7800ad5a9c
commit 31465ab9e6

View file

@ -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" || :