diff --git a/Makefile b/Makefile index 6d29b7f..732d8db 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ build: uwufetch.c debug: clear gcc $(FLAGS_DEBUG) -o $(NAME) $(FILES) - ./uwufetch -id asd + ./uwufetch install: sudo cp $(NAME) $(INSTALL_DIR)$(NAME) @@ -29,4 +29,4 @@ termux: build termux_uninstall: rm -rf /data/data/com.termux/files$(INSTALL_DIR)$(NAME) - rm -rf /data/data/com.termux/files/usr/lib/uwufetch/ \ No newline at end of file + rm -rf /data/data/com.termux/files/usr/lib/uwufetch/ diff --git a/uwufetch.c b/uwufetch.c index db06b46..18776e8 100644 --- a/uwufetch.c +++ b/uwufetch.c @@ -169,7 +169,7 @@ void get_info() { // get all necessary info } fclose(cpuinfo); gethostname(host, 256); - sprintf(shell, "%s", getenv("SHELL")); + sscanf(getenv("SHELL"), "%*[bin/]%s", shell); // system resources uname(&sys_var); @@ -326,14 +326,13 @@ void print_ascii() { // prints logo (as ascii art) of the given system. distribu " /-________-\\ \n\n", YELLOW, RED, YELLOW, WHITE, YELLOW, LPINK, WHITE, LPINK, YELLOW); } - else printf("\033[0E\033[1C%s" - "TUX for generic\n" - " unix system\n" - " needs to be made.\n" - " If you are\n" - " reading this\n" - " please consider\n" - " contributing.\n\n", RED); + else printf( "\033[0E\033[4C%s.--.\n" + " |o_o |\n" + " |:_/ |\n" + " // \\ \\\n" + " (| | )\n" + " %s/'\\_ _/`\\\n" + " \\___)=(___/\n\n", WHITE, YELLOW); } void print_image() { // prints logo (as an image) of the given system. distributions listed alphabetically. @@ -391,7 +390,10 @@ void uwu_name() { // changes distro name to uwufied(?) name else { sprintf(version_name, "%s", "unknown"); - if (a_i_flag == 1) print_image(); + if (a_i_flag == 1) { + print_image(); + printf("\n"); + } } #undef STRING_TO_UWU }