#!/bin/bash home_dir=$( getent passwd makepkg \ | cut -d: -f6 ) if [ -z "${home_dir}" ]; then >&2 echo 'Cannot find homedir of user "makepkg".' exit 1 fi if [ -n "$1" ]; then arch="$1" else arch=$( pacman-conf Architecture ) fi if ! git -C "${home_dir}/archlinuxewe" pull --ff-only; then >&2 echo 'Cannot update archPackages repository.' fi "${home_dir}/archlinuxewe/archPackagesUpdate" \ --no-abortOnMakepkgError \ --arch "${arch}" true