support for --shell-path
This commit is contained in:
1 parent
9122daa63a
commit
bc13b51b5a
4 files changed
+33
-8
No files matched your search
+14
-6
@@ -12,12 +12,20 @@ void ffPrintShell(FFinstance* instance)
|
||||
return;
|
||||
}
|
||||
|
||||
char* shellName = strrchr(shellPath, '/');
|
||||
char* value;
|
||||
|
||||
if(shellName == NULL)
|
||||
shellName = shellPath;
|
||||
else if(shellName[0] == '/')
|
||||
++shellName;
|
||||
if(!instance->config.shellShowPath)
|
||||
{
|
||||
char* shellName = strrchr(shellPath, '/');
|
||||
if(shellName != NULL)
|
||||
value = ++shellName;
|
||||
else
|
||||
value = shellPath;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = shellPath;
|
||||
}
|
||||
|
||||
ffPrintAndSaveCachedValue(instance, "Shell", shellName);
|
||||
ffPrintAndSaveCachedValue(instance, "Shell", value);
|
||||
}
|
||||
Reference in new issue
Block a user