ls: Avoid printing an empty line when a directory is empty
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
0fad179485
commit
6beea7f817
@ -49,7 +49,7 @@ Result<int> luna_main(int argc, char** argv)
|
||||
if (!long_list)
|
||||
{
|
||||
auto list = TRY(String::join(files, " "_sv));
|
||||
os::println("%s", list.chars());
|
||||
if (!list.is_empty()) os::println("%s", list.chars());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user