🚧 disk: actually execute the command

This commit is contained in:
Vladislav Nepogodin 2023-12-14 22:45:33 +04:00
parent a76d000142
commit d9edacc85c
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9

View File

@ -243,7 +243,7 @@ std::string zfs_list_pools() noexcept {
std::string zfs_list_devs() noexcept {
std::string list_of_devices{};
// get a list of devices with zpools on them
const auto& devices = utils::make_multiline("zpool status -PL 2>/dev/null | awk '{print $1}' | grep \"^/\""sv);
const auto& devices = utils::make_multiline(utils::exec("zpool status -PL 2>/dev/null | awk '{print $1}' | grep \"^/\""sv));
for (const auto& device : devices) {
// add the device
list_of_devices += fmt::format(FMT_COMPILE("{}\n"), device);