Skip to content

Commit

Permalink
Fix json mode arg format
Browse files Browse the repository at this point in the history
  • Loading branch information
jardon committed Sep 13, 2024
1 parent 880d75d commit edd7750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system_files/shared/usr/libexec/sb-key-notify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if mokutil --test-key "$KEY_DER_FILE"; then
if loginctl --help | grep -q "json=MODE"; then
JSON_ARG="--json=short"
fi
USER_ID=$(loginctl list-users --output=json "$JSON_ARG" | jq -r '.[] | .user')
USER_ID=$(loginctl list-users --output=json ${JSON_ARG:+$JSON_ARG} | jq -r '.[] | .user')
XDG_DIR=$(loginctl show-user "$USER_ID" | grep RuntimePath | cut -c 13-)
sudo -u "$USER_ID" \
"DISPLAY=:0" \
Expand Down

0 comments on commit edd7750

Please sign in to comment.