diff --git a/src/misc.cpp b/src/misc.cpp index 9fe844c..96847b6 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -77,8 +77,8 @@ namespace tui { // Revised to deal with partition sizes now being displayed to the user bool confirm_mount([[maybe_unused]] const std::string_view& part_user, bool quite) { #ifdef NDEVENV - const auto& ret_status = gucc::utils::exec(fmt::format(FMT_COMPILE("mount | grep -q {}"), part_user), true); - if (!quite && (ret_status != "0"sv)) { + const auto& is_mounted = gucc::utils::exec_checked(fmt::format(FMT_COMPILE("mount | grep -q {}"), part_user)); + if (!quite && !is_mounted) { detail::infobox_widget("\nMount Failed!\n"sv); std::this_thread::sleep_for(std::chrono::seconds(2)); return false;