summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Userland/Utilities/mount.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Utilities/mount.cpp b/Userland/Utilities/mount.cpp
index a4021b2fdd..0425aef44f 100644
--- a/Userland/Utilities/mount.cpp
+++ b/Userland/Utilities/mount.cpp
@@ -172,8 +172,10 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
return 0;
}
- if (source.is_empty() && mountpoint.is_empty())
+ if (source.is_empty() && mountpoint.is_empty()) {
TRY(print_mounts());
+ return 0;
+ }
if (!source.is_empty() && !mountpoint.is_empty()) {
if (fs_type.is_empty())