Skip to content

Commit

Permalink
🧹 simple_tui: use string_view literals in more places
Browse files Browse the repository at this point in the history
  • Loading branch information
vnepogodin committed Jul 28, 2024
1 parent c065c45 commit 10b51ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/simple_tui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ auto select_filesystem() noexcept -> std::string {
bool success{};
auto ok_callback = [&] {
const auto& file_sys = menu_entries[static_cast<std::size_t>(selected)];
/*if (file_sys == "zfs") {
/*if (file_sys == "zfs"sv) {
// NOTE: We don't have automatic zfs partitioning,
// in HEADLESS mode.
tui::zfs_auto();
Expand Down Expand Up @@ -404,7 +404,7 @@ void menu_simple() noexcept {
}

// If the root partition is btrfs, offer to create subvolumes
/*if (gucc::fs::utils::get_mountpoint_fs(mountpoint) == "btrfs") {
/*if (gucc::fs::utils::get_mountpoint_fs(mountpoint) == "btrfs"sv) {
// Check if there are subvolumes already on the btrfs partition
const auto& subvolumes = fmt::format(FMT_COMPILE("btrfs subvolume list \"{}\" 2>/dev/null"), mountpoint);
const auto& subvolumes_count = gucc::utils::exec(fmt::format(FMT_COMPILE("{} | wc -l"), subvolumes));
Expand Down

0 comments on commit 10b51ac

Please sign in to comment.