basic/glyph-util: introduce optional_glyph() to wrap emoji_enabled()

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2025-03-15 14:40:52 +01:00
parent 1ae9b0cfa8
commit 75d51d77da
3 changed files with 11 additions and 2 deletions
+2 -2
View File
@@ -1274,8 +1274,8 @@ static int run(int argc, char *argv[]) {
"%s%s/proc/ is not mounted. This is not a supported mode of operation. Please fix\n"
"your invocation environment to mount /proc/ and /sys/ properly. Proceeding anyway.\n"
"Your mileage may vary.",
emoji_enabled() ? glyph(GLYPH_WARNING_SIGN) : "",
emoji_enabled() ? " " : "");
optional_glyph(GLYPH_WARNING_SIGN),
optional_glyph(GLYPH_SPACE));
if (arg_action != ACTION_SYSTEMCTL && running_in_chroot() > 0) {
if (!arg_quiet)