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
commit 3965fcc484
Notes: sideshowbarker 2024-07-19 13:07:03 +09:00

View file

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