TanmayPatil105 / procfetch

🎨 Yet another command-line system information utility written in C++
https://tanmaypatil105.github.io/procfetch/
GNU General Public License v3.0
23 stars 11 forks source link

ascii art not printing in EndeavourOS #83

Closed TanmayPatil105 closed 1 year ago

TanmayPatil105 commented 1 year ago

Instead of printing ascii art of EndeavourOS it prints Default ascii art.

Output:

[liveuser@eos-2021.12.17 procfetch]$ procfetch

    __     _                    
   / /    (_)____   __  __ _  __
  / /    / // __ \ / / / /| |/_/
 / /___ / // / / // /_/ /_>  <  
/_____//_//_/ /_/ \__,_//_/|_|  

liveuser@#

OS :  x86_64
Host : VirtualBox 1.2
Kernel : 5.15.8-arch1-1
UpTime : 1 mins
RAM : 825MiB / 1976MiB
shell : bash

Contents of /etc/os-release

[liveuser@eos-2021.12.17 procfetch]$ cat /etc/os-release 
NAME='EndeavourOS'
PRETTY_NAME='EndeavourOS'
ID=endeavouros
ID_LIKE=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL='https://endeavouros.com'
DOCUMENTATION_URL='https://discovery.endeavouros.com'
SUPPORT_URL='https://forum.endeavouros.com'
BUG_REPORT_URL='https://forum.endeavouros.com/c/arch-based-related-questions/bug-reports'
LOGO=endeavouros
IMAGE_ID=endeavouros
IMAGE_VERSION=2021.12.17
TanmayPatil105 commented 1 year ago

The issue if with getOS function. In getOS function we are parsing after the string between double quotes. But the /etc/os-release file contains a single quote.

[txnmxy@txnmxy src]$ cat /etc/os-release 
NAME='EndeavourOS'
PRETTY_NAME='EndeavourOS