Fix script

This commit is contained in:
2026-01-19 18:53:15 -05:00
parent 932a69b3f1
commit 2ef375c95a

View File

@@ -1,8 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env bash
signfile(){ signfile(){
if ! sbverify --cert "/boot/key/MOK.crt" "$FILE" &>/dev/null; then if ! sbverify --cert "/boot/key/MOK.crt" "$1" &>/dev/null; then
sbsign --key "/boot/key/MOK.key" --cert "/boot/key/MOK.crt" --output "$FILE" "$FILE" sbsign --key "/boot/key/MOK.key" --cert "/boot/key/MOK.crt" --output "$1" "$1"
} }
find /boot -type d | while read -r dir; do find /boot -type d | while read -r dir; do