From 28a26cda3a689b7470358ea10b33732c2b893ee3 Mon Sep 17 00:00:00 2001 From: Bernhard Landauer Date: Tue, 28 Feb 2017 01:36:51 +0100 Subject: [PATCH] fix inst_needed() --- lib/util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.sh b/lib/util.sh index a1f4c18..bd1524f 100644 --- a/lib/util.sh +++ b/lib/util.sh @@ -370,7 +370,7 @@ check_base() { # install a pkg in the live session if not installed inst_needed() { - if [[ ! $(pacman -Q $1 2>/dev/null) ]] ; then + if [[ ! $(pacman -Q $1) ]]; then echo "Install needed pkg $1." && pacman -Sy --noconfirm $1 check_for_error "Install needed pkg $1." $? fi