Fixed shell name (openbsd)
This commit is contained in:
parent
e0d207ea08
commit
755b6b0aa9
1 changed files with 4 additions and 2 deletions
|
@ -1084,8 +1084,10 @@ struct info get_info()
|
|||
sprintf(user_info.shell, "%s", "");
|
||||
else
|
||||
sprintf(user_info.shell, "%s", tmp_shell);
|
||||
if (strlen(user_info.shell) > 16) // android shell was too long, this works only for termux
|
||||
#ifdef __linux__
|
||||
if (strlen(user_info.shell) > 16) // android shell name was too long
|
||||
memmove(&user_info.shell, &user_info.shell[27], strlen(user_info.shell));
|
||||
#endif
|
||||
#else // if _WIN32
|
||||
// cpu name
|
||||
cpuinfo = popen("wmic cpu get caption", "r");
|
||||
|
|
Loading…
Reference in a new issue