Merge branch 'main' of https://github.com/TheDarkBug/litefetch
This commit is contained in:
commit
87e048376b
2 changed files with 18 additions and 18 deletions
|
|
@ -114,7 +114,7 @@ void get_info() { // get all necessary info
|
|||
memmove(&shell[0], &shell[5], 16);
|
||||
|
||||
// os version
|
||||
FILE *fos_rel = popen("cat /etc/os-release | grep ID= | cut -d '=' -f2 2> /dev/null", "r");
|
||||
FILE *fos_rel = popen("cat /etc/os-release | awk '/^ID=/' | awk -F '=' '{print $2}' 2> /dev/null", "r");
|
||||
fscanf(fos_rel,"%[^\n]", version_name);
|
||||
fclose(fos_rel);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue