Skip to content

Commit

Permalink
fix: update warning formatting (#1699)
Browse files Browse the repository at this point in the history
  • Loading branch information
jardon authored Sep 26, 2024
1 parent a63c028 commit 68cabb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system_files/shared/usr/libexec/check-sb-key.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if [ $SB_ENABLED -ne 0 ]; then
fi

if mokutil --test-key "$KEY_DER_FILE"; then
echo "**WARNING**: $WARNING_MSG" > $KEY_WARN_FILE
echo "$WARNING_MSG" > $KEY_WARN_FILE
else
[ -e $KEY_WARN_FILE ] && rm $KEY_WARN_FILE
fi
2 changes: 1 addition & 1 deletion system_files/shared/usr/libexec/ublue-motd
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if [[ -f "$TIP_FILE" ]]; then
fi

KEY_WARN_FILE="/run/user-motd-sbkey-warn.md"
[ -e $KEY_WARN_FILE ] && KEY_WARN="$(cat $KEY_WARN_FILE)"
[ -e $KEY_WARN_FILE ] && KEY_WARN="**WARNING**: $(cat $KEY_WARN_FILE)"
KEY_WARN_ESCAPED=$(escape "$KEY_WARN")

sed -e "s/%IMAGE_NAME%/$IMAGE_NAME_ESCAPED/g" \
Expand Down

0 comments on commit 68cabb2

Please sign in to comment.