summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
author諏訪子 <suwako@076.moe>2024-06-19 19:57:33 +0900
committer諏訪子 <suwako@076.moe>2024-06-19 19:57:33 +0900
commite8b7158d34bda940b31fca56c2c97b586d6ee937 (patch)
treeff03c51d5582d29b0d3020b12951eef2e599810b /main.c
parentb40fc45106967a7fd58581c6218f70b3b376712f (diff)
Linux: ディストロのロゴの表示
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index 11d5f9f..b6e7531 100644
--- a/main.c
+++ b/main.c
@@ -35,6 +35,7 @@ int main(int argc, char *argv[]) {
#include "src/logo/freebsd.h"
getOS();
#elif defined(__linux__)
+ get_distro();
#include "src/logo/linux.h"
getDistro(distroname);
#else
@@ -102,9 +103,8 @@ int main(int argc, char *argv[]) {
#if defined(__linux__)
printf("%s ", LOGO[lc]);
- printf(COLOR"%s%s"RESET, "Distro", ": ");
- display_distro();
- printf("\n");
+ printf("%s%s%s"RESET, color, "Distro", ": ");
+ printf("%s\n", display_distro());
lc++;
#endif