Remove check_for_error from inst_needed

merge-requests/273/head
Chrysostomus 8 years ago
parent 5ac298bb4a
commit 145eb02bb8

@ -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

Loading…
Cancel
Save