Загрузить файлы в «»

This commit is contained in:
8nlight 2023-08-21 00:03:19 +03:00
parent a3f8da336a
commit e4b10c792f
2 changed files with 11 additions and 11 deletions

View File

@ -127,7 +127,7 @@ char *GetOs(void) {
while (getline(&line, &len, fp) != EOF) { while (getline(&line, &len, fp) != EOF) {
if (strstr(line, "PRETTY_NAME=") != NULL) { if (strstr(line, "PRETTY_NAME=") != NULL) {
line[strlen(line) - 2] = '\0'; line[strlen(line) - 2] = '\0';
fclose(fp); fclose(fp);
//Need free (in main()) //Need free (in main())
return line; return line;
@ -183,9 +183,9 @@ LOGO GetArt(void) {
else if (strstr(Os, "Arch") || strstr(Os, "Artix")) { else if (strstr(Os, "Arch") || strstr(Os, "Artix")) {
art.size = sizeof(Arch) / sizeof(char *); art.size = sizeof(Arch) / sizeof(char *);
art.pkg_cmd = "pacman -Qq | wc -l"; art.pkg_cmd = "pacman -Qq | wc -l";
art.art = Arch; art.art = Arch;
art.color = "\033[0;34m"; art.color = "\033[0;34";
} }
} }
else { else {

14
logos.h
View File

@ -41,13 +41,13 @@ char *Arch[] = {
char *Unknow[] = { char *Unknow[] = {
" ", " ",
"\033[35m ___ ", "\033[1;36m ___ ",
"\033[35m (\033[0m..\033[35m | ", "\033[1;36m (\033[0m..\033[1;36m | ",
"\033[35m (\033[33m<> \033[35m| ", "\033[1;36m (\033[33m<> \033[1;36m| ",
"\033[35m / \033[0m__\033[35m \\ ", "\033[1;36m / \033[0m__\033[1;36m \\ ",
"\033[35m ( \033[0m/ \\\033[35m /| ", "\033[1;36m ( \033[0m/ \\\033[1;36m /| ",
"\033[33m_\033[35m/ \033[0m\\__/\033[35m/_) ", "\033[33m_\033[1;36m/ \033[0m\\__/\033[1;36m/_) ",
"\033[35m\\/\033[35m-____\033[33m\\/ ", "\033[1;36m\\/\033[1;36m-____\033[33m\\/ ",
" " " "
}; };