diff --git a/fetchy b/fetchy index 7bf36cc..857762c 100755 Binary files a/fetchy and b/fetchy differ diff --git a/fetchy.c b/fetchy.c index 9985c46..a41f3f8 100644 --- a/fetchy.c +++ b/fetchy.c @@ -188,15 +188,19 @@ static char *get_sys(char *sys, char *os_name){ fclose(sysName); truncate_spaces_leading(name); - snprintf(os_name, BUF_SIZE, "\x1b[36mOS\x1b[0m -> %s Linux", name); - if ( !strcmp( name, "Arch") ) *sys = 'a'; if ( !strcmp( name, "Artix") ) *sys = 'x'; - if ( !strcmp( name, "Arco") ) *sys = 'r'; + if ( !strcmp( name, "ArcoLinux") ) *sys = 'r'; if ( !strcmp( name, "Debian")) *sys = 'd'; if ( !strcmp( name, "Ubuntu")) *sys = 'u'; + + if( *sys == 'r' ) + snprintf(os_name, BUF_SIZE, "\x1b[36mOS\x1b[0m -> %s", name); + else + snprintf(os_name, BUF_SIZE, "\x1b[36mOS\x1b[0m -> %s Linux", name); + free(name); return os_name; }