Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pull/328'
Browse files Browse the repository at this point in the history
* origin/pull/328:
  contrib: support trailing commas in sbctl setup output
  • Loading branch information
Foxboron committed Jul 28, 2024
2 parents 4f31817 + ef2c081 commit 2403f4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contrib/kernel-install/91-sbctl.install
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ add)

# exit without error if keys don't exist
# https://github.com/Foxboron/sbctl/issues/187
if ! [ "$(sbctl setup --print-state --json | grep installed | awk '{print $2}')" = "true" ]; then
if ! [ "$(sbctl setup --print-state --json | awk '/installed/ { gsub(/,$/,"",$2); print $2 }')" = "true" ]; then
echo "Secureboot key directory doesn't exist, not signing!"
exit 0
fi
Expand Down
2 changes: 1 addition & 1 deletion contrib/mkinitcpio/sbctl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
KERNEL_FILE="$1"
UKI_FILE="$3"

if ! [ "$(sbctl setup --print-state --json | grep installed | awk '{print $2}')" = "true" ]; then
if ! [ "$(sbctl setup --print-state --json | awk '/installed/ { gsub(/,$/,"",$2); print $2 }')" = "true" ]; then
echo "Secureboot key directory doesn't exist, not signing!"
exit 0
fi
Expand Down

0 comments on commit 2403f4f

Please sign in to comment.