Update the system before running checks

This commit is contained in:
Filippo Squillace 2017-04-25 00:07:00 +01:00
parent d6d6883e82
commit 8fe650ce87
2 changed files with 2 additions and 1 deletions

View file

@ -33,6 +33,7 @@ info "Validating JuNest located in ${JUNEST_HOME}..."
info "Initial JuNest setup..."
echo "Server = ${DEFAULT_MIRROR}" >> /etc/pacman.d/mirrorlist
pacman --noconfirm -Syy
pacman --noconfirm -S grep coreutils
pacman --noconfirm -S $(pacman -Sg base-devel | cut -d ' ' -f 2 | grep -v sudo)
info "Checking essential executables work..."

View file

@ -23,7 +23,7 @@ function _install_from_aur(){
builtin cd ${maindir}/packages/${pkgname}
$CURL "https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=${pkgname}"
[ -z "${installname}" ] || $CURL "https://aur.archlinux.org/cgit/aur.git/plain/${installname}?h=${pkgname}"
makepkg -sfc
makepkg -sfcd
sudo pacman --noconfirm --root ${maindir}/root -U ${pkgname}*.pkg.tar.xz
}