1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:17:34 +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,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;
}