Fixed #42, shortened shell name for termux.
This commit is contained in:
parent
117dfe96dd
commit
20958b6118
1 changed files with 2 additions and 1 deletions
|
@ -176,7 +176,8 @@ void get_info() { // get all necessary info
|
||||||
}
|
}
|
||||||
fclose(cpuinfo);
|
fclose(cpuinfo);
|
||||||
gethostname(host, 256);
|
gethostname(host, 256);
|
||||||
sscanf(getenv("SHELL"), "%*[bin/]%s", shell);
|
sscanf(getenv("SHELL"), "%s", shell);
|
||||||
|
if (strlen(shell) > 16) memmove(&shell, &shell[27], sizeof(shell)); // android shell was too long, this works only for termux
|
||||||
|
|
||||||
// system resources
|
// system resources
|
||||||
uname(&sys_var);
|
uname(&sys_var);
|
||||||
|
|
Loading…
Reference in a new issue