mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 00:37:23 +01:00
Logo: don't try to find files named -
This commit is contained in:
@@ -473,6 +473,9 @@ static void updateLogoPath(void)
|
||||
if(ffPathExists(options->source.chars, FF_PATHTYPE_FILE))
|
||||
return;
|
||||
|
||||
if (ffStrbufEqualS(&options->source, "-")) // stdin
|
||||
return;
|
||||
|
||||
FF_STRBUF_AUTO_DESTROY fullPath = ffStrbufCreate();
|
||||
if (ffPathExpandEnv(options->source.chars, &fullPath) && ffPathExists(fullPath.chars, FF_PATHTYPE_FILE))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user