Skip to content

Commit 71df96d

Browse files
committed
contrib: support trailing commas in sbctl setup output
1 parent 4f31817 commit 71df96d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/kernel-install/91-sbctl.install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ add)
3131

3232
# exit without error if keys don't exist
3333
# https://github.com/Foxboron/sbctl/issues/187
34-
if ! [ "$(sbctl setup --print-state --json | grep installed | awk '{print $2}')" = "true" ]; then
34+
if ! [ "$(sbctl setup --print-state --json | awk '/installed/ { gsub(/,$/,"",$2); print $2 }')" = "true" ]; then
3535
echo "Secureboot key directory doesn't exist, not signing!"
3636
exit 0
3737
fi

0 commit comments

Comments
 (0)