From 145eb02bb832e2fff795e2d8f982fc49340cf97a Mon Sep 17 00:00:00 2001 From: Chrysostomus Date: Fri, 24 Feb 2017 15:21:48 +0800 Subject: [PATCH] Remove check_for_error from inst_needed --- lib/util.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/util.sh b/lib/util.sh index c88d394..adc9085 100644 --- a/lib/util.sh +++ b/lib/util.sh @@ -362,8 +362,7 @@ check_base() { # install a pkg in the live session if not installed inst_needed() { - [[ ! $(pacman -Q $1 2>/dev/null) ]] && pacman -Sy --noconfirm $1 - check_for_error "Install needed pkg $1." "$?" + [[ ! $(pacman -Q $1 2>/dev/null) ]] && echo "Install needed pkg $1." && pacman -Sy --noconfirm $1 } # install a pkg in the chroot if not installed