🧹 crypto: refactor a bit

This commit is contained in:
Vladislav Nepogodin 2024-04-30 13:46:15 +04:00
parent 4ef6bd13da
commit 112bb742da
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9

View File

@ -181,7 +181,7 @@ void luks_express() noexcept {
void luks_show() noexcept {
static constexpr auto luks_success = "Done!";
const auto& lsblk = utils::exec("lsblk -o NAME,TYPE,FSTYPE,SIZE | grep \"part\\|crypt\\|NAME\\|TYPE\\|FSTYPE\\|SIZE\"");
const auto& lsblk = utils::exec(R"(lsblk -o NAME,TYPE,FSTYPE,SIZE | grep "part\|crypt\|NAME\|TYPE\|FSTYPE\|SIZE")");
const auto& content = fmt::format(FMT_COMPILE("\n{}\n \n{}"), luks_success, lsblk);
detail::msgbox_widget(content, size(HEIGHT, GREATER_THAN, 5));
}