From f55124759e2253b448eaf6cfeeec298000670171 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Thu, 28 Mar 2024 10:37:46 +0100 Subject: [PATCH] Don't print stderr output of commands (send to stdout). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nicolás Ortega Froysa --- pacundo.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pacundo.pl b/pacundo.pl index 7a4550e..51f9132 100755 --- a/pacundo.pl +++ b/pacundo.pl @@ -139,7 +139,7 @@ $n, $tx->{action}, $tx->{pkg_name} sub get_pkgmgr() { my $mgr = $ENV{DEFAULT_PKGMGR} // 'pacman'; - my $mgr_bin = `which $mgr`; + my $mgr_bin = `which $mgr 2>&1`; if ($? != 0) { print(STDERR "Failed to find pacman executable. Are you using an ArchLinux system?\n");