From 439f39218b25bebffbf825f9f500bb6d7d3344df Mon Sep 17 00:00:00 2001 From: Riyyi Date: Wed, 2 Feb 2022 22:10:37 +0100 Subject: [PATCH] Manager: Drop 'cat' package dependency --- src/package.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/package.cpp b/src/package.cpp index f60b283..2ec749d 100644 --- a/src/package.cpp +++ b/src/package.cpp @@ -134,10 +134,8 @@ void Package::installOrAurInstall(InstallType type) if (type == InstallType::AurInstall) { // Determine which packages in the list are from the AUR - auto aurCommand = "grep -vx '" + repoList.output() + "'"; - // NOTE: Util::System does not support commands with newlines - auto aurList = Util::Shell()("cat ./packages | " + aurCommand); + auto aurList = Util::Shell()("grep -vx '" + repoList.output() + "' ./packages"); command = aurHelper.value() + " -Sy --devel --needed --noconfirm " + aurList.output(); } else {