1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:08:12 +00:00

Shell: Correct suggestion of directories

This commit is contained in:
AnotherTest 2020-04-19 22:01:58 +04:30 committed by Andreas Kling
parent c97ca2fecc
commit 0e5191de49

View file

@ -1100,7 +1100,7 @@ int main(int argc, char** argv)
if (!(program_status.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
continue;
if (S_ISDIR(program_status.st_mode)) {
if (suggest_executables)
if (!suggest_executables)
continue;
else
trivia = "/";