basic/glyph-util: introduce optional_glyph() to wrap emoji_enabled()
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user