From d9edacc85c8b4078d8fca136b638565674e7da52 Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Thu, 14 Dec 2023 22:45:33 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20disk:=20actually=20execute=20the?= =?UTF-8?q?=20command?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/disk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/disk.cpp b/src/disk.cpp index 9134352..d1d52b2 100644 --- a/src/disk.cpp +++ b/src/disk.cpp @@ -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);