1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:57:45 +00:00

ls: Don't print an empty line if there were no files to show.

Fixes #352.
This commit is contained in:
Andreas Kling 2019-07-21 09:26:47 +02:00
parent 5f0f1ce9d2
commit 3965fcc484

View file

@ -284,6 +284,7 @@ int do_file_system_object_short(const char* path)
printed_on_row = 0; printed_on_row = 0;
} }
} }
if (printed_on_row)
printf("\n"); printf("\n");
return 0; return 0;