Skip to content

Commit

Permalink
chore: Support new line in MOTD (#872)
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo authored Feb 4, 2024
1 parent cce1728 commit 45d93e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/libexec/ublue-motd
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ if [[ -f "$TIP_FILE" ]]; then

TIP_ESCAPED=$(escape "$TIP")

sed -e "s/%IMAGE_NAME%/$IMAGE_NAME_ESCAPED/g" -e "s/%IMAGE_TAG%/$IMAGE_TAG_ESCAPED/g" -e "s/%TIP%/$TIP_ESCAPED/g" /usr/share/ublue-os/motd/bluefin.md | /usr/bin/glow -s auto -
sed -e "s/%IMAGE_NAME%/$IMAGE_NAME_ESCAPED/g" -e "s/%IMAGE_TAG%/$IMAGE_TAG_ESCAPED/g" -e "s/%TIP%/$TIP_ESCAPED/g" /usr/share/ublue-os/motd/bluefin.md | tr '~' '\n' | /usr/bin/glow -s auto -
fi

0 comments on commit 45d93e6

Please sign in to comment.